summaryrefslogtreecommitdiff
path: root/src/mongo/db/dur_writetodatafiles.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/dur_writetodatafiles.cpp')
-rw-r--r--src/mongo/db/dur_writetodatafiles.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/dur_writetodatafiles.cpp b/src/mongo/db/dur_writetodatafiles.cpp
index d9a2e345115..6d823c7aa07 100644
--- a/src/mongo/db/dur_writetodatafiles.cpp
+++ b/src/mongo/db/dur_writetodatafiles.cpp
@@ -31,6 +31,7 @@
#include "mongo/pch.h"
#include "mongo/db/dur_commitjob.h"
+#include "mongo/db/dur_journal.h"
#include "mongo/db/dur_recover.h"
#include "mongo/db/dur_stats.h"
#include "mongo/util/concurrency/mutex.h"
@@ -100,6 +101,7 @@ namespace mongo {
WRITETODATAFILES_Impl1(h, uncompressed);
unsigned long long m = t.micros();
stats.curr->_writeToDataFilesMicros += m;
+ setLastSeqNumberWrittenToSharedView(h.seqNumber);
LOG(2) << "journal WRITETODATAFILES " << m / 1000.0 << "ms" << endl;
}