summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/session_catalog_migration_destination_test.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2022-08-23 12:06:13 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-23 17:17:05 +0000
commit3ecc949d233e878d1b9c2a0aee98eb99a044d260 (patch)
tree89f04129fb07ce156ceef8582daa163b9a813564 /src/mongo/db/s/session_catalog_migration_destination_test.cpp
parent29b2944a389c1937c294fd061f54526a14f49498 (diff)
downloadmongo-3ecc949d233e878d1b9c2a0aee98eb99a044d260.tar.gz
SERVER-68215 make MongoDSessionCatalog a decoration on ServiceContext
Diffstat (limited to 'src/mongo/db/s/session_catalog_migration_destination_test.cpp')
-rw-r--r--src/mongo/db/s/session_catalog_migration_destination_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/s/session_catalog_migration_destination_test.cpp b/src/mongo/db/s/session_catalog_migration_destination_test.cpp
index 160fa63bd0d..be6d1b7e1a4 100644
--- a/src/mongo/db/s/session_catalog_migration_destination_test.cpp
+++ b/src/mongo/db/s/session_catalog_migration_destination_test.cpp
@@ -138,7 +138,9 @@ public:
// onStepUp() relies on the storage interface to create the config.transactions table.
repl::StorageInterface::set(getServiceContext(),
std::make_unique<repl::StorageInterfaceImpl>());
- MongoDSessionCatalog::onStepUp(operationContext());
+ MongoDSessionCatalog::set(getServiceContext(), std::make_unique<MongoDSessionCatalog>());
+ auto mongoDSessionCatalog = MongoDSessionCatalog::get(operationContext());
+ mongoDSessionCatalog->onStepUp(operationContext());
LogicalSessionCache::set(getServiceContext(), std::make_unique<LogicalSessionCacheNoop>());
setUnshardedFilteringMetadata(kNs);