diff options
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp index e16ddefb2ec..5bff9f4e1e4 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp @@ -169,9 +169,10 @@ public: try { if (keepOldBehavior) { - const bool forceCheckpoint = true; - const bool stableCheckpoint = false; - _sessionCache->waitUntilDurable(forceCheckpoint, stableCheckpoint); + UniqueWiredTigerSession session = _sessionCache->getSession(); + WT_SESSION* s = session->getSession(); + invariantWTOK(s->checkpoint(s, nullptr)); + LOG(4) << "created checkpoint (forced)"; } else { // Three cases: // |