diff options
author | Judah Schvimer <judah.schvimer@10gen.com> | 2019-10-30 22:05:44 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-30 22:05:44 +0000 |
commit | 18fbbb89ade4f96da64a29c274e305f3a17e59f1 (patch) | |
tree | 8a291f91465d4f3944e950feab9080d9c23989ca /src | |
parent | 101484a9f11f6fb4f3c75a040d8168e5587c9452 (diff) | |
download | mongo-18fbbb89ade4f96da64a29c274e305f3a17e59f1.tar.gz |
SERVER-43879 OplogInterfaceLocal::next should return an owned BSON obj
(cherry picked from commit 11cc6bd375b1a6089047a44909efb9cb4d1ad97e)
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/repl/oplog_interface_local.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/oplog_interface_local.cpp b/src/mongo/db/repl/oplog_interface_local.cpp index 9c27ed62149..c16a59181b2 100644 --- a/src/mongo/db/repl/oplog_interface_local.cpp +++ b/src/mongo/db/repl/oplog_interface_local.cpp @@ -80,7 +80,7 @@ StatusWith<OplogInterface::Iterator::Value> OplogIteratorLocal::next() { // Non-yielding collection scans from InternalPlanner will never error. invariant(PlanExecutor::ADVANCED == state || PlanExecutor::IS_EOF == state); - return StatusWith<Value>(std::make_pair(obj, recordId)); + return StatusWith<Value>(std::make_pair(obj.getOwned(), recordId)); } } // namespace |