diff options
author | Adrian Gonzalez <adriangonzalezmontemayor@gmail.com> | 2022-09-02 20:00:45 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-02 20:36:39 +0000 |
commit | ec5028908821ebf172a48499741a2b3c3f0b16af (patch) | |
tree | b97aaea2740d5a58550cacc89362915f5eaa10ff /src | |
parent | c4adccd525f8498dbb51f8737b8df4c3a1df38c9 (diff) | |
download | mongo-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.cpp | 2 |
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(), |