diff options
author | Benety Goh <benety@mongodb.com> | 2022-08-23 12:06:13 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-08-23 17:17:05 +0000 |
commit | 3ecc949d233e878d1b9c2a0aee98eb99a044d260 (patch) | |
tree | 89f04129fb07ce156ceef8582daa163b9a813564 /src/mongo/db/s/session_catalog_migration_destination_test.cpp | |
parent | 29b2944a389c1937c294fd061f54526a14f49498 (diff) | |
download | mongo-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.cpp | 4 |
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); |