summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/collection_catalog_test.cpp
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2023-04-27 19:20:05 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-27 20:43:15 +0000
commit07b38e091b48acd305469d525b81aebf3aeadbf1 (patch)
tree9e7860073e7f07845c14a893d0f66ad3928cea99 /src/mongo/db/catalog/collection_catalog_test.cpp
parent1986e999fb257eb01d54c351ad0d1168171b74d4 (diff)
downloadmongo-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.cpp4
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();