summaryrefslogtreecommitdiff
path: root/src/mongo/db/free_mon/free_mon_storage_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/free_mon/free_mon_storage_test.cpp')
-rw-r--r--src/mongo/db/free_mon/free_mon_storage_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/free_mon/free_mon_storage_test.cpp b/src/mongo/db/free_mon/free_mon_storage_test.cpp
index 06906389cdd..bdd6db0bf52 100644
--- a/src/mongo/db/free_mon/free_mon_storage_test.cpp
+++ b/src/mongo/db/free_mon/free_mon_storage_test.cpp
@@ -233,7 +233,7 @@ TEST_F(FreeMonStorageTest, TestSecondary) {
void insertDoc(OperationContext* optCtx, const NamespaceString nss, StringData id) {
auto storageInterface = repl::StorageInterface::get(optCtx);
- Lock::DBLock dblk(optCtx, nss.db(), MODE_IX);
+ Lock::DBLock dblk(optCtx, nss.dbName(), MODE_IX);
Lock::CollectionLock lk(optCtx, nss, MODE_IX);
BSONObj fakeDoc = BSON("_id" << id);