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/transaction_history_iterator.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/transaction_history_iterator.cpp')
-rw-r--r-- | src/mongo/db/transaction_history_iterator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/transaction_history_iterator.cpp b/src/mongo/db/transaction_history_iterator.cpp index fae77f37d7b..c4bd0c0b2f4 100644 --- a/src/mongo/db/transaction_history_iterator.cpp +++ b/src/mongo/db/transaction_history_iterator.cpp @@ -88,7 +88,7 @@ BSONObj findOneOplogEntry(OperationContext* opCtx, Date_t::max()); auto exec = uassertStatusOK( - getExecutorFind(opCtx, oplogRead.getCollection(), std::move(cq), permitYield)); + getExecutorFind(opCtx, &oplogRead.getCollection(), std::move(cq), permitYield)); PlanExecutor::ExecState getNextResult; try { |