diff options
author | Dianna Hohensee <dianna.hohensee@mongodb.com> | 2020-05-28 20:10:48 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-02 17:26:36 +0000 |
commit | 8ee572abe5a47d3d49e7436c1a376ac395517add (patch) | |
tree | 2b2ed2c1ab15c4a475ce52e013582010d38ac70a /src/mongo/db/storage/storage_options.h | |
parent | 363c16270f4cf18b6e64c10568973e20acba6209 (diff) | |
download | mongo-8ee572abe5a47d3d49e7436c1a376ac395517add.tar.gz |
SERVER-45642 Fix WiredTigerCheckpointThread to skip checkpointing if syncdelay is set to 0; disallow users from setting syncdelay values greater than an hour; and stop spurious checkpoint thread wakeups.
Also move JS tests using high syncdelay values to using the now working 0 value to disable checkpointing.
Diffstat (limited to 'src/mongo/db/storage/storage_options.h')
-rw-r--r-- | src/mongo/db/storage/storage_options.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/storage/storage_options.h b/src/mongo/db/storage/storage_options.h index 4202cbc10ef..2d7e1a21ba7 100644 --- a/src/mongo/db/storage/storage_options.h +++ b/src/mongo/db/storage/storage_options.h @@ -95,8 +95,8 @@ struct StorageGlobalParams { // via an fsync operation. // Do not set this value on production systems. // In almost every situation, you should use the default setting. - static constexpr double kMaxSyncdelaySecs = 9.0 * 1000.0 * 1000.0; - AtomicDouble syncdelay; // seconds between fsyncs + static constexpr double kMaxSyncdelaySecs = 60 * 60; // 1hr + AtomicDouble syncdelay; // seconds between fsyncs // --queryableBackupMode // Puts MongoD into "read-only" mode. MongoD will not write any data to the underlying |