diff options
author | Geert Bosch <geert@mongodb.com> | 2019-04-12 13:27:54 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2019-04-15 11:24:05 -0400 |
commit | 688948927bedd25c4c5c50bc7e6a253feeec4e25 (patch) | |
tree | c1beee18d1d6acf197455542a0328f0190f8dc70 /src/mongo/db/commands/dbhash.cpp | |
parent | 03171bed9efdf0d25054fcddd936ad04db53f4aa (diff) | |
download | mongo-688948927bedd25c4c5c50bc7e6a253feeec4e25.tar.gz |
SERVER-40604 Make CollectionLock interruptible
Diffstat (limited to 'src/mongo/db/commands/dbhash.cpp')
-rw-r--r-- | src/mongo/db/commands/dbhash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |