summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_options.h
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2015-10-08 17:20:07 -0400
committerGeert Bosch <geert@mongodb.com>2015-10-09 18:46:43 -0400
commita049f84fb0de51aa4f52dcfe527a866b5d842fb2 (patch)
tree0c50d61464e8966da2988e5be179e5d44af51b73 /src/mongo/db/storage/storage_options.h
parentb118f7d9bbde5f1e17d82f52f8ef2f4126c817c7 (diff)
downloadmongo-a049f84fb0de51aa4f52dcfe527a866b5d842fb2.tar.gz
SERVER-16609: Periodically flush journal to stable storage
Diffstat (limited to 'src/mongo/db/storage/storage_options.h')
-rw-r--r--src/mongo/db/storage/storage_options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/storage/storage_options.h b/src/mongo/db/storage/storage_options.h
index 1b429c0c9d5..1b6069242cd 100644
--- a/src/mongo/db/storage/storage_options.h
+++ b/src/mongo/db/storage/storage_options.h
@@ -92,6 +92,10 @@ struct StorageGlobalParams {
bool dur; // --dur durability (now --journal)
+ // --journalCommitInterval
+ static const int kMaxJournalCommitIntervalMs;
+ std::atomic<int> journalCommitIntervalMs;
+
// --notablescan
// no table scans allowed
std::atomic<bool> noTableScan;