diff options
author | Denis Grebennicov <denis.grebennicov@mongodb.com> | 2022-05-04 17:39:02 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-04 19:25:18 +0000 |
commit | fc01ed79b88ee17038b72fb2808e8eb9c219fa20 (patch) | |
tree | 8d9c280d1fefe9ca90ccb7a66077e19ba46b81eb /src/mongo/db/query | |
parent | 64cfe77a06ef3cf703c2bf6a86a08c459ad5df72 (diff) | |
download | mongo-fc01ed79b88ee17038b72fb2808e8eb9c219fa20.tar.gz |
SERVER-61485 Wrong SBE plan reported by explain() for rejected plans
Diffstat (limited to 'src/mongo/db/query')
-rw-r--r-- | src/mongo/db/query/plan_explainer_sbe.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/query/plan_explainer_sbe.h b/src/mongo/db/query/plan_explainer_sbe.h index 7ce73608596..5dc97f90641 100644 --- a/src/mongo/db/query/plan_explainer_sbe.h +++ b/src/mongo/db/query/plan_explainer_sbe.h @@ -77,11 +77,11 @@ public: ExplainOptions::Verbosity) const final; private: - boost::optional<BSONObj> buildExecPlanDebugInfo( - const sbe::PlanStage* root, const stage_builder::PlanStageData* data) const { + static boost::optional<BSONObj> buildExecPlanDebugInfo( + const sbe::PlanStage* root, const stage_builder::PlanStageData* data) { if (root && data) { return BSON("slots" << data->debugString() << "stages" - << sbe::DebugPrinter().print(*_root)); + << sbe::DebugPrinter().print(*root)); } return boost::none; } |