diff options
author | Jordi Olivares Provencio <jordi.olivares-provencio@mongodb.com> | 2022-04-20 13:27:01 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-20 13:53:12 +0000 |
commit | e399b6676c5fc11df61e9b8ca4c27a2f7fc1e584 (patch) | |
tree | 0494726144eda7a7bbbec93649467a8d84f724d0 /src/mongo/db/catalog_raii_test.cpp | |
parent | f08cda52ec0e3cbe6ffea30848179ef8641d5f34 (diff) | |
download | mongo-e399b6676c5fc11df61e9b8ca4c27a2f7fc1e584.tar.gz |
SERVER-64467 Refactor TicketHolders to not use global context
Diffstat (limited to 'src/mongo/db/catalog_raii_test.cpp')
-rw-r--r-- | src/mongo/db/catalog_raii_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/catalog_raii_test.cpp b/src/mongo/db/catalog_raii_test.cpp index 2e615b22061..8e849db9c7e 100644 --- a/src/mongo/db/catalog_raii_test.cpp +++ b/src/mongo/db/catalog_raii_test.cpp @@ -57,7 +57,7 @@ public: ClientAndCtx makeClientWithLocker(const std::string& clientName) { auto client = getServiceContext()->makeClient(clientName); auto opCtx = client->makeOperationContext(); - client->swapLockState(std::make_unique<LockerImpl>()); + client->swapLockState(std::make_unique<LockerImpl>(opCtx->getServiceContext())); return std::make_pair(std::move(client), std::move(opCtx)); } |