diff options
| author | Dan Larkin-York <dan.larkin-york@mongodb.com> | 2022-01-21 22:56:53 +0000 |
|---|---|---|
| committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-01-21 23:22:14 +0000 |
| commit | 212a8dbb47f07427dae194a9c75baec1d81d9259 (patch) | |
| tree | cc892738369efd303b9a91613166b746912335aa /src/mongo/db/storage/storage_engine_impl.cpp | |
| parent | 8643180253568239b1e53cfb345453a4fbdbfd8f (diff) | |
SERVER-62618 Avoid quadratic behavior at startup with many collectionsr5.0.6-rc2r5.0.6
Diffstat (limited to 'src/mongo/db/storage/storage_engine_impl.cpp')
| -rw-r--r-- | src/mongo/db/storage/storage_engine_impl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/storage/storage_engine_impl.cpp b/src/mongo/db/storage/storage_engine_impl.cpp index e3b397337cd..6af5185e793 100644 --- a/src/mongo/db/storage/storage_engine_impl.cpp +++ b/src/mongo/db/storage/storage_engine_impl.cpp @@ -236,6 +236,7 @@ void StorageEngineImpl::loadCatalog(OperationContext* opCtx, LastShutdownState l } } + BatchedCollectionCatalogWriter catalogBatchWriter{opCtx}; for (DurableCatalog::Entry entry : catalogEntries) { if (loadingFromUncleanShutdownOrRepair) { // If we are loading the catalog after an unclean shutdown or during repair, it's |
