From 830fbc2939c577f0904ba1202c1eca9d8e921c54 Mon Sep 17 00:00:00 2001 From: Lingzhi Deng Date: Wed, 19 Feb 2020 16:23:13 -0500 Subject: SERVER-46257: OplogFetcher should run LogicalTimeMetadataHook on DBClientConnection --- src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp') 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()); -- cgit v1.2.1