From 976b19732685d132e636c34a5b2fe7462def0818 Mon Sep 17 00:00:00 2001 From: Spencer T Brody Date: Fri, 7 Sep 2018 13:24:55 -0400 Subject: SERVER-37048 Hold global intent lock whenever accessing the oplog collection pointer --- src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/storage') diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp index 72e9e39b064..82606cd83b5 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp @@ -2080,7 +2080,7 @@ void StandardWiredTigerRecordStore::setKey(WT_CURSOR* cursor, RecordId id) const std::unique_ptr StandardWiredTigerRecordStore::getCursor( OperationContext* opCtx, bool forward) const { - dassert(opCtx->lockState()->isReadLocked() || _isOplog); + dassert(opCtx->lockState()->isReadLocked()); if (_isOplog && forward) { WiredTigerRecoveryUnit* wru = WiredTigerRecoveryUnit::get(opCtx); -- cgit v1.2.1