summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/implicit_create_collection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/implicit_create_collection.cpp')
-rw-r--r--src/mongo/db/s/implicit_create_collection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/implicit_create_collection.cpp b/src/mongo/db/s/implicit_create_collection.cpp
index 81bf1e04631..2ba0c9f945b 100644
--- a/src/mongo/db/s/implicit_create_collection.cpp
+++ b/src/mongo/db/s/implicit_create_collection.cpp
@@ -97,7 +97,7 @@ public:
auto databaseHolder = DatabaseHolder::get(opCtx);
auto db = databaseHolder->getDb(opCtx, _ns.db());
if (db) {
- Lock::CollectionLock collLock(opCtx->lockState(), _ns.ns(), MODE_IS);
+ Lock::CollectionLock collLock(opCtx, _ns.ns(), MODE_IS);
if (db->getCollection(opCtx, _ns.ns())) {
// Collection already created, no more work needs to be done.
return Status::OK();