diff options
Diffstat (limited to 'src/mongo/db/storage/mmap_v1/data_file_sync.cpp')
-rw-r--r-- | src/mongo/db/storage/mmap_v1/data_file_sync.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/storage/mmap_v1/data_file_sync.cpp b/src/mongo/db/storage/mmap_v1/data_file_sync.cpp index 4d895c09b20..ab7dca95ff9 100644 --- a/src/mongo/db/storage/mmap_v1/data_file_sync.cpp +++ b/src/mongo/db/storage/mmap_v1/data_file_sync.cpp @@ -34,6 +34,7 @@ #include "mongo/db/client.h" #include "mongo/db/commands/server_status_metric.h" +#include "mongo/db/diag_log.h" #include "mongo/db/operation_context.h" #include "mongo/db/service_context.h" #include "mongo/db/storage/mmap_v1/dur_journal.h" @@ -65,6 +66,7 @@ void DataFileSync::run() { } int time_flushing = 0; while (!globalInShutdownDeprecated()) { + _diaglog.flush(); if (storageGlobalParams.syncdelay == 0) { // in case at some point we add an option to change at runtime sleepsecs(5); |