diff options
author | jannaerin <golden.janna@gmail.com> | 2022-07-15 15:13:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-15 16:37:02 +0000 |
commit | 299c4b3e46075a01ab8d0989bca5358a2b0603ae (patch) | |
tree | b01d0e260502be4346f346d8d8d3239836a8d087 /src/mongo/db/storage/kv | |
parent | a16f7f1ee85ac854db4e92294ceb392043623fea (diff) | |
download | mongo-299c4b3e46075a01ab8d0989bca5358a2b0603ae.tar.gz |
SERVER-62923 Change DB lock RAII types to use DatabaseName
Diffstat (limited to 'src/mongo/db/storage/kv')
-rw-r--r-- | src/mongo/db/storage/kv/storage_engine_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/storage/kv/storage_engine_test.cpp b/src/mongo/db/storage/kv/storage_engine_test.cpp index ebfd3bb017a..eced5c5c3ff 100644 --- a/src/mongo/db/storage/kv/storage_engine_test.cpp +++ b/src/mongo/db/storage/kv/storage_engine_test.cpp @@ -449,7 +449,7 @@ TEST_F(StorageEngineRepairTest, LoadCatalogRecoversOrphansInCatalog) { ASSERT_OK(swCollInfo.getStatus()); ASSERT(collectionExists(opCtx.get(), collNs)); - AutoGetDb db(opCtx.get(), collNs.db(), LockMode::MODE_X); + AutoGetDb db(opCtx.get(), collNs.dbName(), LockMode::MODE_X); // Only drop the catalog entry; storage engine still knows about this ident. // This simulates an unclean shutdown happening between dropping the catalog entry and // the actual drop in storage engine. @@ -485,7 +485,7 @@ TEST_F(StorageEngineTest, LoadCatalogDropsOrphans) { ASSERT_OK(swCollInfo.getStatus()); ASSERT(collectionExists(opCtx.get(), collNs)); - AutoGetDb db(opCtx.get(), collNs.db(), LockMode::MODE_X); + AutoGetDb db(opCtx.get(), collNs.dbName(), LockMode::MODE_X); // Only drop the catalog entry; storage engine still knows about this ident. // This simulates an unclean shutdown happening between dropping the catalog entry and // the actual drop in storage engine. |