diff options
author | Dianna Hohensee <dianna.hohensee@mongodb.com> | 2022-06-14 14:34:08 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-14 15:35:23 +0000 |
commit | d9e643fe4dfb7da4ab68d6929477613f244ad361 (patch) | |
tree | 7f20fa92c69386cd360f6cdf9ed252f5c9b8e641 /src | |
parent | f16576af43cbe0c6ab8a1d0dc1528937c9045693 (diff) | |
download | mongo-d9e643fe4dfb7da4ab68d6929477613f244ad361.tar.gz |
SERVER-66529 OplogManager must not release mutex, so as to avoid wrongly fowarding the oplogReadTimestamp after a cappedTruncateAfter operation sets it back.
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.cpp index fdf49f19ba2..a84b6ca6061 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_oplog_manager.cpp @@ -239,8 +239,6 @@ void WiredTigerOplogManager::_updateOplogVisibilityLoop(WiredTigerSessionCache* invariant(_triggerOplogVisibilityUpdate); _triggerOplogVisibilityUpdate = false; - lk.unlock(); - // Fetch the all_durable timestamp from the storage engine, which is guaranteed not to have // any holes behind it in-memory. const uint64_t newTimestamp = sessionCache->getKVEngine()->getAllDurableTimestamp().asULL(); @@ -256,7 +254,6 @@ void WiredTigerOplogManager::_updateOplogVisibilityLoop(WiredTigerSessionCache* continue; } - lk.lock(); // Publish the new timestamp value. Avoid going backward. auto currentVisibleTimestamp = getOplogReadTimestamp(); if (newTimestamp > currentVisibleTimestamp) { |