summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2020-02-19 16:23:13 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-20 23:37:51 +0000
commit830fbc2939c577f0904ba1202c1eca9d8e921c54 (patch)
tree8a718a578d753f68203b0c8924a27bf104784344 /src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp
parente4571070e9659a1ff9335eb0382a6fa0d611bfcf (diff)
downloadmongo-830fbc2939c577f0904ba1202c1eca9d8e921c54.tar.gz
SERVER-46257: OplogFetcher should run LogicalTimeMetadataHook on DBClientConnection
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp')
-rw-r--r--src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp b/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp
index 27271617d88..2fdaa9df462 100644
--- a/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp
+++ b/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp
@@ -899,6 +899,7 @@ TEST_F(ReplCoordHBV1Test,
// Update lastApplied, so commit point can be advanced.
replCoordSetMyLastAppliedOpTime(opTime2, Date_t() + Seconds(100));
+ getExternalState()->setGlobalTimestamp(getGlobalServiceContext(), commitPoint.getTimestamp());
{
net->enterNetwork();
net->runUntil(net->now() + config.getHeartbeatInterval());
@@ -976,6 +977,7 @@ TEST_F(ReplCoordHBV1Test, LastCommittedOpTimeOnlyUpdatesFromHeartbeatIfNotInStar
// Set follower mode to SECONDARY so commit point can be advanced through heartbeats.
ASSERT_OK(getReplCoord()->setFollowerMode(MemberState::RS_SECONDARY));
+ getExternalState()->setGlobalTimestamp(getGlobalServiceContext(), commitPoint.getTimestamp());
{
net->enterNetwork();
net->runUntil(net->now() + config.getHeartbeatInterval());