summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/control/storage_control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/control/storage_control.cpp')
-rw-r--r--src/mongo/db/storage/control/storage_control.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/control/storage_control.cpp b/src/mongo/db/storage/control/storage_control.cpp
index 3f5af49c729..11222448eba 100644
--- a/src/mongo/db/storage/control/storage_control.cpp
+++ b/src/mongo/db/storage/control/storage_control.cpp
@@ -79,8 +79,8 @@ void startStorageControls(ServiceContext* serviceContext, bool forTestOnly) {
std::unique_ptr<JournalFlusher> journalFlusher = std::make_unique<JournalFlusher>(
/*disablePeriodicFlushes*/ forTestOnly ||
(!storageEngine->isDurable() && !storageEngine->isEphemeral()));
+ journalFlusher->go();
JournalFlusher::set(serviceContext, std::move(journalFlusher));
- JournalFlusher::get(serviceContext)->go();
}
if (!storageEngine->isEphemeral() && !storageGlobalParams.readOnly) {