1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-10-31 18:30:33 +03:00

chore(rbo): simplistic rulle application logging.

This commit is contained in:
drrtuy
2025-08-08 15:26:12 +00:00
committed by Leonid Fedorov
parent bbac8e70a1
commit fa76344cfc
3 changed files with 9 additions and 4 deletions

View File

@@ -32,12 +32,13 @@ namespace optimizer {
class RBOptimizerContext {
public:
RBOptimizerContext() = delete;
RBOptimizerContext(cal_impl_if::gp_walk_info& walk_info, THD& thd) : gwi(walk_info), thd(thd) {}
RBOptimizerContext(cal_impl_if::gp_walk_info& walk_info, THD& thd, bool logRules) : gwi(walk_info), thd(thd), logRules(logRules) {}
// gwi lifetime should be longer than optimizer context.
// In plugin runtime this is always true.
cal_impl_if::gp_walk_info& gwi;
THD& thd;
uint64_t uniqueId {0};
bool logRules {false};
};
struct Rule