diff options
author | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-05-15 15:20:11 -0400 |
---|---|---|
committer | Gregory Wlodarek <gregory.wlodarek@mongodb.com> | 2019-05-15 15:35:38 -0400 |
commit | 9af1defd2b1b831322e716baa8a4e54b27bd534a (patch) | |
tree | eaded148b88afb2d843dc821308621f7abf9ddc3 /src/mongo/db/commands/dbhash.cpp | |
parent | 6fdacbfe6dce35b538b5ee00305fae4b9cd07fb2 (diff) | |
download | mongo-9af1defd2b1b831322e716baa8a4e54b27bd534a.tar.gz |
SERVER-37988 Add an optional predicate argument in forEachCollectionFromDb() to allow skipping unsatisfied collections without grabbing them in the desired lock mode
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 9cb4a5adbd5..d93488bbacf 100644 --- a/src/mongo/db/commands/dbhash.cpp +++ b/src/mongo/db/commands/dbhash.cpp @@ -223,7 +223,7 @@ public: opCtx, dbname, MODE_IS, - [&](Collection* collection, CollectionCatalogEntry* catalogEntry) { + [&](const Collection* collection, const CollectionCatalogEntry* catalogEntry) { auto collNss = collection->ns(); if (collNss.size() - 1 <= dbname.size()) { |