diff options
Diffstat (limited to 'src/mongo/db/commands/index_filter_commands.cpp')
-rw-r--r-- | src/mongo/db/commands/index_filter_commands.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/commands/index_filter_commands.cpp b/src/mongo/db/commands/index_filter_commands.cpp index f3f291bbae1..1497e7ae763 100644 --- a/src/mongo/db/commands/index_filter_commands.cpp +++ b/src/mongo/db/commands/index_filter_commands.cpp @@ -276,7 +276,7 @@ Status ClearFilters::clear(OperationContext* opCtx, // removePlanCacheEntriesByPlanCacheCommandKeys() function with the key from the index filter // entry. stdx::unordered_set<uint32_t> planCacheCommandKeys; - for (auto entry : entries) { + for (const auto& entry : entries) { // Create canonical query. auto findCommand = std::make_unique<FindCommandRequest>(nss); findCommand->setFilter(entry.query); |