diff options
author | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2017-11-30 10:38:09 -0500 |
---|---|---|
committer | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2017-11-30 11:44:21 -0500 |
commit | 6c494a1ab515e1f0c5db664866a5302fcae407fe (patch) | |
tree | be30915cfce3a55964dcbfcc791001d1c9eb487f /src | |
parent | 887387753d8a6a07825fca302a8c41142b8f79af (diff) | |
download | mongo-6c494a1ab515e1f0c5db664866a5302fcae407fe.tar.gz |
SERVER-32124: Opt-out the MongoDB checkpoint thread from coordinating with other waitUntilDurable callers.
(cherry picked from commit 852ff9f97b6b92f5c3a88d0e070fe9c0f90ef175)
Diffstat (limited to 'src')
-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: // |