summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_external_state_mock.h
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2018-09-18 14:55:46 -0400
committerJack Mulrow <jack.mulrow@mongodb.com>2019-01-17 18:09:10 -0500
commitbfb0aec447f39633694dcc4418f2a5a5a167937e (patch)
tree6f6a7713f759b4b7d20d0d6a9933f1e11bc818c7 /src/mongo/db/repl/replication_coordinator_external_state_mock.h
parent5918fda8a354db2e3ecc95ac0c384b412bfe0684 (diff)
downloadmongo-bfb0aec447f39633694dcc4418f2a5a5a167937e.tar.gz
SERVER-35663 Always update the logical clock before advancing the last applied opTime
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_external_state_mock.h')
-rw-r--r--src/mongo/db/repl/replication_coordinator_external_state_mock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_external_state_mock.h b/src/mongo/db/repl/replication_coordinator_external_state_mock.h
index fdce3427a3f..1143c7e332d 100644
--- a/src/mongo/db/repl/replication_coordinator_external_state_mock.h
+++ b/src/mongo/db/repl/replication_coordinator_external_state_mock.h
@@ -78,6 +78,7 @@ public:
virtual StatusWith<LastVote> loadLocalLastVoteDocument(OperationContext* opCtx);
virtual Status storeLocalLastVoteDocument(OperationContext* opCtx, const LastVote& lastVote);
virtual void setGlobalTimestamp(ServiceContext* service, const Timestamp& newTime);
+ virtual Timestamp getGlobalTimestamp(ServiceContext* service);
bool oplogExists(OperationContext* opCtx) override;
virtual StatusWith<OpTime> loadLastOpTime(OperationContext* opCtx);
virtual void closeConnections();
@@ -197,6 +198,7 @@ private:
bool _areSnapshotsEnabled = true;
OpTime _firstOpTimeOfMyTerm;
double _electionTimeoutOffsetLimitFraction = 0.15;
+ Timestamp _globalTimestamp;
};
} // namespace repl