diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2020-06-12 08:42:14 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-15 11:31:00 +0000 |
commit | e1d7052125a3ca7767a81c4737628ba37077d17b (patch) | |
tree | c330644ae88efef8a088cfdeb7b4344afb233992 /src/mongo/db/s/vector_clock_shard_server_test.cpp | |
parent | a357a44eb10fe00e3fd4378b539ef36fa9fb3ccd (diff) | |
download | mongo-e1d7052125a3ca7767a81c4737628ba37077d17b.tar.gz |
SERVER-48775 Make OpObserverShardingImpl to be part of sharding_runtime_d
Diffstat (limited to 'src/mongo/db/s/vector_clock_shard_server_test.cpp')
-rw-r--r-- | src/mongo/db/s/vector_clock_shard_server_test.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/db/s/vector_clock_shard_server_test.cpp b/src/mongo/db/s/vector_clock_shard_server_test.cpp index 66bae0d67a0..a2c7577769c 100644 --- a/src/mongo/db/s/vector_clock_shard_server_test.cpp +++ b/src/mongo/db/s/vector_clock_shard_server_test.cpp @@ -80,7 +80,7 @@ private: TEST_F(VectorClockShardServerTest, TickClusterTime) { - auto sc = getGlobalServiceContext(); + auto sc = getServiceContext(); auto vc = VectorClockMutable::get(sc); const auto t0 = vc->getTime(); @@ -98,7 +98,7 @@ TEST_F(VectorClockShardServerTest, TickClusterTime) { } TEST_F(VectorClockShardServerTest, TickToClusterTime) { - auto sc = getGlobalServiceContext(); + auto sc = getServiceContext(); auto vc = VectorClockMutable::get(sc); const auto t0 = vc->getTime(); @@ -118,19 +118,19 @@ TEST_F(VectorClockShardServerTest, TickToClusterTime) { } DEATH_TEST_F(VectorClockShardServerTest, CannotTickConfigTime, "Hit a MONGO_UNREACHABLE") { - auto sc = getGlobalServiceContext(); + auto sc = getServiceContext(); auto vc = VectorClockMutable::get(sc); vc->tick(VectorClock::Component::ConfigTime, 1); } DEATH_TEST_F(VectorClockShardServerTest, CannotTickToConfigTime, "Hit a MONGO_UNREACHABLE") { - auto sc = getGlobalServiceContext(); + auto sc = getServiceContext(); auto vc = VectorClockMutable::get(sc); vc->tickTo(VectorClock::Component::ConfigTime, LogicalTime()); } TEST_F(VectorClockShardServerTest, GossipOutInternal) { - auto sc = getGlobalServiceContext(); + auto sc = getServiceContext(); auto vc = VectorClockMutable::get(sc); LogicalTimeValidator::get(getServiceContext())->enableKeyGenerator(operationContext(), true); @@ -150,7 +150,7 @@ TEST_F(VectorClockShardServerTest, GossipOutInternal) { } TEST_F(VectorClockShardServerTest, GossipOutExternal) { - auto sc = getGlobalServiceContext(); + auto sc = getServiceContext(); auto vc = VectorClockMutable::get(sc); LogicalTimeValidator::get(getServiceContext())->enableKeyGenerator(operationContext(), true); @@ -170,7 +170,7 @@ TEST_F(VectorClockShardServerTest, GossipOutExternal) { } TEST_F(VectorClockShardServerTest, GossipInInternal) { - auto sc = getGlobalServiceContext(); + auto sc = getServiceContext(); auto vc = VectorClockMutable::get(sc); vc->tick(VectorClock::Component::ClusterTime, 1); @@ -214,7 +214,7 @@ TEST_F(VectorClockShardServerTest, GossipInInternal) { } TEST_F(VectorClockShardServerTest, GossipInExternal) { - auto sc = getGlobalServiceContext(); + auto sc = getServiceContext(); auto vc = VectorClockMutable::get(sc); vc->tick(VectorClock::Component::ClusterTime, 1); |