diff options
author | Suganthi Mani <suganthi.mani@mongodb.com> | 2022-12-27 21:35:35 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-12-27 22:10:13 +0000 |
commit | 2f1366a2dabd73becc9df9204fd631c8744e9e0a (patch) | |
tree | 3a912cdc134826feb56312d3a5606181868cf642 /src/mongo/db/repl | |
parent | ddd926f0951d577caf0cc420dc2c7520b728b63d (diff) | |
download | mongo-2f1366a2dabd73becc9df9204fd631c8744e9e0a.tar.gz |
SERVER-72400 Shard merge recipient doesn't need explicit reload views for system.views collections during import phase.
Diffstat (limited to 'src/mongo/db/repl')
-rw-r--r-- | src/mongo/db/repl/tenant_file_importer_service.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/db/repl/tenant_file_importer_service.cpp b/src/mongo/db/repl/tenant_file_importer_service.cpp index a3617372b5b..31120b43fa4 100644 --- a/src/mongo/db/repl/tenant_file_importer_service.cpp +++ b/src/mongo/db/repl/tenant_file_importer_service.cpp @@ -97,16 +97,6 @@ void importCopiedFiles(OperationContext* opCtx, const UUID& migrationId) { auto metadatas = wiredTigerRollbackToStableAndGetMetadata(opCtx, tempWTDirectory.string()); wiredTigerImportFromBackupCursor(opCtx, metadatas, tempWTDirectory.string()); - - auto catalog = CollectionCatalog::get(opCtx); - for (auto&& m : metadatas) { - AutoGetDb dbLock(opCtx, m.ns.dbName(), MODE_IX); - Lock::CollectionLock systemViewsLock( - opCtx, - NamespaceString(m.ns.dbName(), NamespaceString::kSystemDotViewsCollectionName), - MODE_X); - uassertStatusOK(catalog->reloadViews(opCtx, m.ns.dbName())); - } } } // namespace |