summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog_applier_impl_test_fixture.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/oplog_applier_impl_test_fixture.cpp')
-rw-r--r--src/mongo/db/repl/oplog_applier_impl_test_fixture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/oplog_applier_impl_test_fixture.cpp b/src/mongo/db/repl/oplog_applier_impl_test_fixture.cpp
index 9dfb154a971..d4b8ad32e2f 100644
--- a/src/mongo/db/repl/oplog_applier_impl_test_fixture.cpp
+++ b/src/mongo/db/repl/oplog_applier_impl_test_fixture.cpp
@@ -459,7 +459,7 @@ void createCollection(OperationContext* opCtx,
const NamespaceString& nss,
const CollectionOptions& options) {
writeConflictRetry(opCtx, "createCollection", nss.ns(), [&] {
- Lock::DBLock dbLk(opCtx, nss.db(), MODE_IX);
+ Lock::DBLock dbLk(opCtx, nss.dbName(), MODE_IX);
Lock::CollectionLock collLk(opCtx, nss, MODE_X);
OldClientContext ctx(opCtx, nss.ns());
@@ -498,7 +498,7 @@ void createIndex(OperationContext* opCtx,
const NamespaceString& nss,
const UUID collUUID,
const BSONObj& spec) {
- Lock::DBLock dbLk(opCtx, nss.db(), MODE_IX);
+ Lock::DBLock dbLk(opCtx, nss.dbName(), MODE_IX);
Lock::CollectionLock collLk(opCtx, nss, MODE_X);
auto indexBuildsCoord = IndexBuildsCoordinator::get(opCtx);
indexBuildsCoord->createIndex(