diff options
author | Geert Bosch <geert@mongodb.com> | 2019-04-16 17:33:20 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2019-04-17 15:40:11 -0400 |
commit | e0cafae280e508ef887bd08978dcbc5630c08a34 (patch) | |
tree | 225fea823d49fcbe836a0f64d3afdfd7573ebfc5 /src/mongo/db/commands/dbhash.cpp | |
parent | bf774fb0a5e9bed81bc475585deb70812a2c9c41 (diff) | |
download | mongo-e0cafae280e508ef887bd08978dcbc5630c08a34.tar.gz |
SERVER-40688 Make CollectionLock take NamespaceString
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 5cb1d6a09e1..97a4904a516 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, fullCollectionName, MODE_IS); + collLock.emplace(opCtx, ns, MODE_IS); auto minSnapshot = collection->getMinimumVisibleSnapshot(); auto mySnapshot = opCtx->recoveryUnit()->getPointInTimeReadTimestamp(); |