diff options
author | David Storch <david.storch@10gen.com> | 2015-04-14 11:44:18 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2015-04-14 14:25:21 -0400 |
commit | 8bd99fa7bd4387abeb5f6ddf0907b36f67d9c702 (patch) | |
tree | ea33dba5b7dcf00252792aab0320b9f04ef83254 /src/mongo/db/exec/multi_plan.h | |
parent | 7c1ad90880f8612fcc310ad329790464453cfbd9 (diff) | |
download | mongo-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.h | 4 |
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. |