diff options
author | Dianna Hohensee <dianna.hohensee@mongodb.com> | 2020-01-10 08:57:29 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-05 18:42:37 +0000 |
commit | fb91e1d6e719de42905d63d26f065a4ac835be1e (patch) | |
tree | 0e81d0370d36561bba6a34b135b27ff8c2493dfa /src/mongo/db/storage/storage_engine_impl.cpp | |
parent | d8b5b7e7d954919155f9841ba181b26f56e436db (diff) | |
download | mongo-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.cpp | 4 |
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(); } |