summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJudah Schvimer <judah.schvimer@10gen.com>2019-10-31 13:56:43 +0000
committerevergreen <evergreen@mongodb.com>2019-10-31 13:56:43 +0000
commit6488883c472556282a7a1bfa1ded079ada3a6820 (patch)
tree018e10a1e4e212b4029acd7fc6137468d4c051f7 /src
parentec8daeb297f0fb4075a81173687e2610a5be76b6 (diff)
downloadmongo-6488883c472556282a7a1bfa1ded079ada3a6820.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.cpp2
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 f09598490bb..4ffd812de04 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