summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl
diff options
context:
space:
mode:
authorFaustoleyva54 <fausto.leyva@mongodb.com>2022-04-07 15:22:47 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-07 16:26:11 +0000
commit035343e72516fb3657eeb98d08879153a596d6a7 (patch)
treee2742b3576706773648d2c9f724820fef6175044 /src/mongo/db/repl
parent50d15d6ce470f7e27fe753953b106ffa5ee096f5 (diff)
downloadmongo-035343e72516fb3657eeb98d08879153a596d6a7.tar.gz
SERVER-51236 Merge UncommittedCollections with UncommittedCatalogUpdates
Diffstat (limited to 'src/mongo/db/repl')
-rw-r--r--src/mongo/db/repl/tenant_migration_shard_merge_util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/tenant_migration_shard_merge_util.cpp b/src/mongo/db/repl/tenant_migration_shard_merge_util.cpp
index 99f65df2274..05779a48618 100644
--- a/src/mongo/db/repl/tenant_migration_shard_merge_util.cpp
+++ b/src/mongo/db/repl/tenant_migration_shard_merge_util.cpp
@@ -39,7 +39,7 @@
#include "mongo/bson/bsonobjbuilder.h"
#include "mongo/db/catalog/collection_catalog.h"
#include "mongo/db/catalog/create_collection.h"
-#include "mongo/db/catalog/uncommitted_collections.h"
+#include "mongo/db/catalog/uncommitted_catalog_updates.h"
#include "mongo/db/concurrency/d_concurrency.h"
#include "mongo/db/concurrency/write_conflict_exception.h"
#include "mongo/db/cursor_server_params_gen.h"
@@ -215,7 +215,7 @@ void wiredTigerImportFromBackupCursor(OperationContext* opCtx,
opCtx->recoveryUnit()->registerChange(
makeCountsChange(ownedCollection->getRecordStore(), collectionMetadata));
- UncommittedCollections::addToTxn(opCtx, std::move(ownedCollection));
+ CollectionCatalog::get(opCtx)->onCreateCollection(opCtx, std::move(ownedCollection));
// TODO SERVER-63789 Uncomment wunit.commit() call below when we
// make file copy/import async.
// wunit.commit();