summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/dbhash.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/dbhash.cpp')
-rw-r--r--src/mongo/db/commands/dbhash.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/commands/dbhash.cpp b/src/mongo/db/commands/dbhash.cpp
index 4b63110308c..627e2fe4d86 100644
--- a/src/mongo/db/commands/dbhash.cpp
+++ b/src/mongo/db/commands/dbhash.cpp
@@ -278,17 +278,17 @@ public:
BSONArrayBuilder cappedCollections;
BSONObjBuilder collectionsByUUID;
- for (auto elem : cappedCollectionSet) {
+ for (const auto& elem : cappedCollectionSet) {
cappedCollections.append(elem);
}
- for (auto entry : collectionToUUIDMap) {
+ for (const auto& entry : collectionToUUIDMap) {
auto collName = entry.first;
auto uuid = entry.second;
uuid.appendToBuilder(&collectionsByUUID, collName);
}
- for (auto entry : collectionToHashMap) {
+ for (const auto& entry : collectionToHashMap) {
auto collName = entry.first;
auto hash = entry.second;
bb.append(collName, hash);