summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/mmap_v1/dur.cpp
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/mmap_v1/dur.cpp
parentb118f7d9bbde5f1e17d82f52f8ef2f4126c817c7 (diff)
downloadmongo-a049f84fb0de51aa4f52dcfe527a866b5d842fb2.tar.gz
SERVER-16609: Periodically flush journal to stable storage
Diffstat (limited to 'src/mongo/db/storage/mmap_v1/dur.cpp')
-rw-r--r--src/mongo/db/storage/mmap_v1/dur.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/storage/mmap_v1/dur.cpp b/src/mongo/db/storage/mmap_v1/dur.cpp
index 84f30f0d173..979fe0ab900 100644
--- a/src/mongo/db/storage/mmap_v1/dur.cpp
+++ b/src/mongo/db/storage/mmap_v1/dur.cpp
@@ -485,8 +485,8 @@ void Stats::S::_asObj(BSONObjBuilder* builder) const {
<< (unsigned)(_commitsMicros / 1000) << "commitsInWriteLock"
<< (unsigned)(_commitsInWriteLockMicros / 1000));
- if (mmapv1GlobalOptions.journalCommitInterval != 0) {
- b << "journalCommitIntervalMs" << mmapv1GlobalOptions.journalCommitInterval.load();
+ if (storageGlobalParams.journalCommitIntervalMs != 0) {
+ b << "journalCommitIntervalMs" << storageGlobalParams.journalCommitIntervalMs.load();
}
}
@@ -672,7 +672,7 @@ static void durThread() {
uint64_t remapLastTimestamp(0);
while (shutdownRequested.loadRelaxed() == 0) {
- unsigned ms = mmapv1GlobalOptions.journalCommitInterval;
+ unsigned ms = storageGlobalParams.journalCommitIntervalMs;
if (ms == 0) {
ms = samePartition ? 100 : 30;
}