diff options
Diffstat (limited to 'src/mongo/db/repl/local_oplog_info.cpp')
-rw-r--r-- | src/mongo/db/repl/local_oplog_info.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/local_oplog_info.cpp b/src/mongo/db/repl/local_oplog_info.cpp index e73199c00db..eb7de479b6d 100644 --- a/src/mongo/db/repl/local_oplog_info.cpp +++ b/src/mongo/db/repl/local_oplog_info.cpp @@ -86,11 +86,11 @@ const CollectionPtr& LocalOplogInfo::getCollection() const { } void LocalOplogInfo::setCollection(const CollectionPtr& oplog) { - _oplog = oplog.detached(); + _oplog = CollectionPtr(oplog.get(), CollectionPtr::NoYieldTag{}); } void LocalOplogInfo::resetCollection() { - _oplog = CollectionPtr(); + _oplog.reset(); } void LocalOplogInfo::setNewTimestamp(ServiceContext* service, const Timestamp& newTime) { |