From 688948927bedd25c4c5c50bc7e6a253feeec4e25 Mon Sep 17 00:00:00 2001 From: Geert Bosch Date: Fri, 12 Apr 2019 13:27:54 -0400 Subject: SERVER-40604 Make CollectionLock interruptible --- src/mongo/db/commands/dbhash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/commands/dbhash.cpp') diff --git a/src/mongo/db/commands/dbhash.cpp b/src/mongo/db/commands/dbhash.cpp index 1ae2e0880b0..5cb1d6a09e1 100644 --- a/src/mongo/db/commands/dbhash.cpp +++ b/src/mongo/db/commands/dbhash.cpp @@ -279,7 +279,7 @@ private: // reading from the consistent snapshot doesn't overlap with any catalog operations on // the collection. invariant(opCtx->lockState()->isDbLockedForMode(db->name(), MODE_IS)); - collLock.emplace(opCtx->lockState(), fullCollectionName, MODE_IS); + collLock.emplace(opCtx, fullCollectionName, MODE_IS); auto minSnapshot = collection->getMinimumVisibleSnapshot(); auto mySnapshot = opCtx->recoveryUnit()->getPointInTimeReadTimestamp(); -- cgit v1.2.1