summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_consistency_markers_mock.cpp
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2019-03-06 15:41:28 -0500
committerTess Avitabile <tess.avitabile@mongodb.com>2019-03-13 14:30:38 -0400
commit84916e817418b3b5627e80730effcd422c15696e (patch)
tree96e1685150fd897421007533499eea7423c62ec2 /src/mongo/db/repl/replication_consistency_markers_mock.cpp
parent035aa5ca9d7e6c4587368ab11c82ead405f6e047 (diff)
downloadmongo-84916e817418b3b5627e80730effcd422c15696e.tar.gz
SERVER-38925 When enableMajorityReadConcern=false, after rollback via refetch, do not take stable checkpoint until the local top of oplog from before rollback is reached
Diffstat (limited to 'src/mongo/db/repl/replication_consistency_markers_mock.cpp')
-rw-r--r--src/mongo/db/repl/replication_consistency_markers_mock.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/repl/replication_consistency_markers_mock.cpp b/src/mongo/db/repl/replication_consistency_markers_mock.cpp
index ece2150fd44..61f46bf0bef 100644
--- a/src/mongo/db/repl/replication_consistency_markers_mock.cpp
+++ b/src/mongo/db/repl/replication_consistency_markers_mock.cpp
@@ -93,7 +93,8 @@ Timestamp ReplicationConsistencyMarkersMock::getOplogTruncateAfterPoint(
}
void ReplicationConsistencyMarkersMock::setAppliedThrough(OperationContext* opCtx,
- const OpTime& optime) {
+ const OpTime& optime,
+ bool setTimestamp) {
stdx::lock_guard<stdx::mutex> lock(_minValidBoundariesMutex);
_appliedThrough = optime;
}