summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_engine_impl.cpp
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@mongodb.com>2020-01-10 08:57:29 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-05 18:42:37 +0000
commitfb91e1d6e719de42905d63d26f065a4ac835be1e (patch)
tree0e81d0370d36561bba6a34b135b27ff8c2493dfa /src/mongo/db/storage/storage_engine_impl.cpp
parentd8b5b7e7d954919155f9841ba181b26f56e436db (diff)
downloadmongo-fb91e1d6e719de42905d63d26f065a4ac835be1e.tar.gz
SERVER-45665 Make JournalFlusher flush on command and waitForWriteConcern asynchronously call waitUntilDurable through the JournalFlusher.
Making waitForWriteConcern asynchronously call waitUntilDurable is a performance gain.
Diffstat (limited to 'src/mongo/db/storage/storage_engine_impl.cpp')
-rw-r--r--src/mongo/db/storage/storage_engine_impl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/storage/storage_engine_impl.cpp b/src/mongo/db/storage/storage_engine_impl.cpp
index 71cdd7fd74b..93a59a29ab0 100644
--- a/src/mongo/db/storage/storage_engine_impl.cpp
+++ b/src/mongo/db/storage/storage_engine_impl.cpp
@@ -852,6 +852,10 @@ void StorageEngineImpl::triggerJournalFlush() const {
return _engine->triggerJournalFlush();
}
+void StorageEngineImpl::waitForJournalFlush(OperationContext* opCtx) const {
+ return _engine->waitForJournalFlush(opCtx);
+}
+
Timestamp StorageEngineImpl::getAllDurableTimestamp() const {
return _engine->getAllDurableTimestamp();
}