summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog_raii_test.cpp
diff options
context:
space:
mode:
authorEric Milkie <milkie@mongodb.com>2019-11-04 18:49:17 +0000
committerevergreen <evergreen@mongodb.com>2019-11-04 18:49:17 +0000
commited610057b4a87cf96e3ba12bea8ae258a569906e (patch)
tree9239a8d332048a609bbe58e1f9565cd29835e5db /src/mongo/db/catalog_raii_test.cpp
parent927eb1ea8c8b972ec4930d669a9d0804683b10e5 (diff)
downloadmongo-ed610057b4a87cf96e3ba12bea8ae258a569906e.tar.gz
SERVER-44368 protect opCtx's Locker with Client lock
Diffstat (limited to 'src/mongo/db/catalog_raii_test.cpp')
-rw-r--r--src/mongo/db/catalog_raii_test.cpp2
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 b01e508db03..97c67cd0f25 100644
--- a/src/mongo/db/catalog_raii_test.cpp
+++ b/src/mongo/db/catalog_raii_test.cpp
@@ -56,7 +56,7 @@ public:
ClientAndCtx makeClientWithLocker(const std::string& clientName) {
auto client = getServiceContext()->makeClient(clientName);
auto opCtx = client->makeOperationContext();
- opCtx->swapLockState(std::make_unique<LockerImpl>());
+ client->swapLockState(std::make_unique<LockerImpl>());
return std::make_pair(std::move(client), std::move(opCtx));
}