diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-09-30 11:19:31 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-13 00:32:43 +0000 |
commit | bcab0c7e1c1b2e1516d06d23233fea9a425b99f7 (patch) | |
tree | 8d805048d69ece52bb64e740532f5968b671865c /src/mongo/db/s/split_chunk.cpp | |
parent | 0dadef8dd93175bf3a75412d8a32b377d9eba42c (diff) | |
download | mongo-bcab0c7e1c1b2e1516d06d23233fea9a425b99f7.tar.gz |
SERVER-51200 CollectionPtr in RequiresCollectionStage point to instance owned by AutoGetCollection
RequiresCollectionStage now holds a pointer to CollectionPtr owned by an AutoGetCollection.
When we save and restore the executor a new CollectionPtr pointer needs to be assigned.
Plan executors can no longer be created with temporary CollectionPtr instances and their interface have been changed to take pointers to avoid binding to rvalues.
RequiresCollectionStage no longer loads collections from the catalog and will be in sync with the owning AutoGetCollection.
Diffstat (limited to 'src/mongo/db/s/split_chunk.cpp')
-rw-r--r-- | src/mongo/db/s/split_chunk.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/split_chunk.cpp b/src/mongo/db/s/split_chunk.cpp index 4efdc2e8656..718aa93c20e 100644 --- a/src/mongo/db/s/split_chunk.cpp +++ b/src/mongo/db/s/split_chunk.cpp @@ -66,7 +66,7 @@ bool checkIfSingleDoc(OperationContext* opCtx, BSONObj newmax = Helpers::toKeyFormat(kp.extendRangeBound(chunk->getMax(), true)); auto exec = InternalPlanner::indexScan(opCtx, - collection, + &collection, idx, newmin, newmax, |