summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/multi_plan.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-04-14 11:44:18 -0400
committerDavid Storch <david.storch@10gen.com>2015-04-14 14:25:21 -0400
commit8bd99fa7bd4387abeb5f6ddf0907b36f67d9c702 (patch)
treeea33dba5b7dcf00252792aab0320b9f04ef83254 /src/mongo/db/exec/multi_plan.h
parent7c1ad90880f8612fcc310ad329790464453cfbd9 (diff)
downloadmongo-8bd99fa7bd4387abeb5f6ddf0907b36f67d9c702.tar.gz
SERVER-17328 add invariant that collection is non-null to planning stages (CachedPlan/Subplan/MultiPlan)
Diffstat (limited to 'src/mongo/db/exec/multi_plan.h')
-rw-r--r--src/mongo/db/exec/multi_plan.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/exec/multi_plan.h b/src/mongo/db/exec/multi_plan.h
index ad55afa8d2e..43596aea247 100644
--- a/src/mongo/db/exec/multi_plan.h
+++ b/src/mongo/db/exec/multi_plan.h
@@ -173,8 +173,10 @@ namespace mongo {
static const int kNoSuchPlan = -1;
- // not owned here
+ // Not owned here.
OperationContext* _txn;
+
+ // Not owned here. Must be non-null.
const Collection* _collection;
// Whether or not we should try to cache the winning plan in the plan cache.