mirror of https://gitee.com/bigwinds/arangodb
Renamed CheckPlan to PlanChecker
This commit is contained in:
parent
9d3a7f4cda
commit
656fa173f8
|
@ -62,9 +62,9 @@ bool Optimizer::runOnlyRequiredRules(size_t extraPlans) const {
|
||||||
|
|
||||||
// Check the plan for inconsistencies, like more than one parent or dependency,
|
// Check the plan for inconsistencies, like more than one parent or dependency,
|
||||||
// or mismatching parents and dependencies in adjacent nodes.
|
// or mismatching parents and dependencies in adjacent nodes.
|
||||||
class CheckPlan : public WalkerWorker<ExecutionNode> {
|
class PlanChecker : public WalkerWorker<ExecutionNode> {
|
||||||
public:
|
public:
|
||||||
CheckPlan(ExecutionPlan& plan) : _plan{plan} {}
|
PlanChecker(ExecutionPlan& plan) : _plan{plan} {}
|
||||||
|
|
||||||
bool before(ExecutionNode* node) override {
|
bool before(ExecutionNode* node) override {
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
|
@ -168,7 +168,7 @@ void Optimizer::addPlan(std::unique_ptr<ExecutionPlan> plan,
|
||||||
TRI_ASSERT(_currentRule->second.rule.level == rule.level);
|
TRI_ASSERT(_currentRule->second.rule.level == rule.level);
|
||||||
|
|
||||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||||
auto checker = CheckPlan{*plan};
|
auto checker = PlanChecker{*plan};
|
||||||
plan->root()->walk(checker);
|
plan->root()->walk(checker);
|
||||||
#endif // ARANGODB_ENABLE_MAINTAINER_MODE
|
#endif // ARANGODB_ENABLE_MAINTAINER_MODE
|
||||||
|
|
||||||
|
@ -210,7 +210,7 @@ int Optimizer::createPlans(std::unique_ptr<ExecutionPlan> plan,
|
||||||
ExecutionPlan* initialPlan = plan.get();
|
ExecutionPlan* initialPlan = plan.get();
|
||||||
|
|
||||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||||
auto checker = CheckPlan{*plan};
|
auto checker = PlanChecker{*plan};
|
||||||
plan->root()->walk(checker);
|
plan->root()->walk(checker);
|
||||||
#endif // ARANGODB_ENABLE_MAINTAINER_MODE
|
#endif // ARANGODB_ENABLE_MAINTAINER_MODE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue