diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2023-04-27 19:20:05 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-27 20:43:15 +0000 |
commit | 07b38e091b48acd305469d525b81aebf3aeadbf1 (patch) | |
tree | 9e7860073e7f07845c14a893d0f66ad3928cea99 /src/mongo/db/catalog/collection_catalog_test.cpp | |
parent | 1986e999fb257eb01d54c351ad0d1168171b74d4 (diff) | |
download | mongo-07b38e091b48acd305469d525b81aebf3aeadbf1.tar.gz |
SERVER-76450 Remove CollectionCatalogStasher
Diffstat (limited to 'src/mongo/db/catalog/collection_catalog_test.cpp')
-rw-r--r-- | src/mongo/db/catalog/collection_catalog_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/collection_catalog_test.cpp b/src/mongo/db/catalog/collection_catalog_test.cpp index babf9692df9..9eb767d1dec 100644 --- a/src/mongo/db/catalog/collection_catalog_test.cpp +++ b/src/mongo/db/catalog/collection_catalog_test.cpp @@ -378,7 +378,7 @@ TEST_F(CollectionCatalogTest, OnDropCollection) { // The global catalog is used to refresh the CollectionPtr's internal state, so we temporarily // replace the global instance initialized in the service context test fixture with our own. - CollectionCatalogStasher catalogStasher(opCtx.get(), sharedCatalog); + CollectionCatalog::stash(opCtx.get(), sharedCatalog); // Before dropping collection, confirm that the CollectionPtr can be restored successfully. yieldableColl.restore(); @@ -420,7 +420,7 @@ TEST_F(CollectionCatalogTest, RenameCollection) { // The global catalog is used to refresh the CollectionPtr's internal state, so we temporarily // replace the global instance initialized in the service context test fixture with our own. - CollectionCatalogStasher catalogStasher(opCtx.get(), sharedCatalog); + CollectionCatalog::stash(opCtx.get(), sharedCatalog); // Before renaming collection, confirm that the CollectionPtr can be restored successfully. yieldableColl.restore(); |