summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/dbhash.cpp
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2019-04-16 17:33:20 -0400
committerGeert Bosch <geert@mongodb.com>2019-04-17 15:40:11 -0400
commite0cafae280e508ef887bd08978dcbc5630c08a34 (patch)
tree225fea823d49fcbe836a0f64d3afdfd7573ebfc5 /src/mongo/db/commands/dbhash.cpp
parentbf774fb0a5e9bed81bc475585deb70812a2c9c41 (diff)
downloadmongo-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.cpp2
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();