summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog
diff options
context:
space:
mode:
authorArun Banala <arun.banala@mongodb.com>2022-02-25 17:30:05 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-02 11:50:37 +0000
commitae0c9cf8327d54470175ac8a450df8f08e77578a (patch)
treeffee5f22d6a7d423e57a41d392069fd9b1fa15d7 /src/mongo/db/catalog
parentebd873f520e214c61df66f1ce291d1af72671d6c (diff)
downloadmongo-ae0c9cf8327d54470175ac8a450df8f08e77578a.tar.gz
SERVER-62556 Make rename across databases emit insert change events for temporary collection
Diffstat (limited to 'src/mongo/db/catalog')
-rw-r--r--src/mongo/db/catalog/rename_collection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/rename_collection.cpp b/src/mongo/db/catalog/rename_collection.cpp
index 7ae108ff44a..70cc4fe307e 100644
--- a/src/mongo/db/catalog/rename_collection.cpp
+++ b/src/mongo/db/catalog/rename_collection.cpp
@@ -705,8 +705,8 @@ Status renameBetweenDBs(OperationContext* opCtx,
}
OpDebug* const opDebug = nullptr;
- auto status =
- autoTmpColl->insertDocuments(opCtx, stmts.begin(), stmts.end(), opDebug, true);
+ auto status = autoTmpColl->insertDocuments(
+ opCtx, stmts.begin(), stmts.end(), opDebug, false /* fromMigrate */);
if (!status.isOK()) {
return status;
}