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/repl/dbcheck.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/repl/dbcheck.cpp')
-rw-r--r-- | src/mongo/db/repl/dbcheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/dbcheck.cpp b/src/mongo/db/repl/dbcheck.cpp index 34127bb5e95..6dfae59d3ba 100644 --- a/src/mongo/db/repl/dbcheck.cpp +++ b/src/mongo/db/repl/dbcheck.cpp @@ -189,7 +189,7 @@ DbCheckHasher::DbCheckHasher(OperationContext* opCtx, // Set up a simple index scan on that. _exec = InternalPlanner::indexScan(opCtx, - collection, + &collection, desc, start.obj(), end.obj(), |