summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2016-07-15 11:29:03 -0400
committerBenety Goh <benety@mongodb.com>2016-07-15 19:46:16 -0400
commit8db76c3dd2ff1e9f2d8dbb026c4cd3c4496217c7 (patch)
tree8846b1246afa99e1510c10343887febb609c383f
parent08ef5eefb59b96c6696416144d43cfe2c45d3619 (diff)
downloadmongo-8db76c3dd2ff1e9f2d8dbb026c4cd3c4496217c7.tar.gz
SERVER-25069 SyncTail::oplogApplication() should set minvalid using last optime from replication coordinator instead of last set global timestamp
-rw-r--r--src/mongo/db/repl/sync_tail.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/sync_tail.cpp b/src/mongo/db/repl/sync_tail.cpp
index f785c1788e6..d3b7be423c5 100644
--- a/src/mongo/db/repl/sync_tail.cpp
+++ b/src/mongo/db/repl/sync_tail.cpp
@@ -760,7 +760,7 @@ void SyncTail::oplogApplication() {
// (last) failed batch, whichever is larger.
// This will cause this node to go into RECOVERING state
// if we should crash and restart before updating finishing.
- const OpTime start(getLastSetTimestamp(), OpTime::kUninitializedTerm);
+ const auto& start = lastWriteOpTime;
// Take the max of the first endOptime (if we recovered) and the end of our batch.