summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/op_observer_sharding_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/op_observer_sharding_test.cpp')
-rw-r--r--src/mongo/db/s/op_observer_sharding_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/op_observer_sharding_test.cpp b/src/mongo/db/s/op_observer_sharding_test.cpp
index 1b5f2ee340d..a4676bd8c46 100644
--- a/src/mongo/db/s/op_observer_sharding_test.cpp
+++ b/src/mongo/db/s/op_observer_sharding_test.cpp
@@ -67,8 +67,8 @@ protected:
bool justCreated = false;
auto databaseHolder = DatabaseHolder::get(operationContext());
auto db = databaseHolder->openDb(operationContext(), kTestNss.dbName(), &justCreated);
- auto scopedDss = DatabaseShardingState::assertDbLockedAndAcquire(
- operationContext(), kTestNss.dbName(), DSSAcquisitionMode::kExclusive);
+ auto scopedDss = DatabaseShardingState::assertDbLockedAndAcquireExclusive(
+ operationContext(), kTestNss.dbName());
scopedDss->setDbInfo(operationContext(),
DatabaseType{kTestNss.dbName().db(), ShardId("this"), dbVersion1});
ASSERT_TRUE(db);