summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Gonzalez <adriangonzalezmontemayor@gmail.com>2022-09-02 20:00:45 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-02 20:36:39 +0000
commitec5028908821ebf172a48499741a2b3c3f0b16af (patch)
treeb97aaea2740d5a58550cacc89362915f5eaa10ff /src
parentc4adccd525f8498dbb51f8737b8df4c3a1df38c9 (diff)
downloadmongo-ec5028908821ebf172a48499741a2b3c3f0b16af.tar.gz
SERVER-69199 Access entry by reference to prevent unnecessary copies
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/storage/storage_engine_impl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/storage_engine_impl.cpp b/src/mongo/db/storage/storage_engine_impl.cpp
index 872ffff82b7..d3a968725f4 100644
--- a/src/mongo/db/storage/storage_engine_impl.cpp
+++ b/src/mongo/db/storage/storage_engine_impl.cpp
@@ -177,7 +177,7 @@ void StorageEngineImpl::loadCatalog(OperationContext* opCtx, LastShutdownState l
kCatalogLogLevel.toInt(),
"Catalog entries at the oldest timestamp",
"oldestTimestamp"_attr = _engine->getOldestTimestamp());
- for (auto entry : entriesAtOldest) {
+ for (const auto& entry : entriesAtOldest) {
existedAtOldestTs.insert(entry.catalogId);
LOGV2_FOR_RECOVERY(5380109,
kCatalogLogLevel.toInt(),