diff options
author | David Storch <david.storch@10gen.com> | 2015-12-30 14:50:38 -0500 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-01-04 10:46:05 -0500 |
commit | 898818d5a299fa2eff01d3950d40c8512bab7f10 (patch) | |
tree | a6dbd116fce11f13dcf1455bd0a7b9e0a957fcd9 /src/mongo/db/query/stage_builder.h | |
parent | c28bf48e5d3cbe6c1aceed89adcdf8ed7cba5f42 (diff) | |
download | mongo-898818d5a299fa2eff01d3950d40c8512bab7f10.tar.gz |
SERVER-21510 trip invariant on attempt to create PlanStages with a no-op extension context
Diffstat (limited to 'src/mongo/db/query/stage_builder.h')
-rw-r--r-- | src/mongo/db/query/stage_builder.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/query/stage_builder.h b/src/mongo/db/query/stage_builder.h index c490b9a974d..ee5ae17bb75 100644 --- a/src/mongo/db/query/stage_builder.h +++ b/src/mongo/db/query/stage_builder.h @@ -44,6 +44,8 @@ public: /** * Turns 'solution' into an executable tree of PlanStage(s). * + * 'cq' must be the CanonicalQuery from which 'solution' is derived. + * * Returns true if the PlanStage tree was built successfully. The root of the tree is in * *rootOut and the WorkingSet that the tree uses is in wsIn. * @@ -51,6 +53,7 @@ public: */ static bool build(OperationContext* txn, Collection* collection, + const CanonicalQuery& cq, const QuerySolution& solution, WorkingSet* wsIn, PlanStage** rootOut); |