diff options
author | Arun Banala <arun.banala@mongodb.com> | 2022-02-25 17:30:05 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-02 11:50:37 +0000 |
commit | ae0c9cf8327d54470175ac8a450df8f08e77578a (patch) | |
tree | ffee5f22d6a7d423e57a41d392069fd9b1fa15d7 /src/mongo/db/catalog | |
parent | ebd873f520e214c61df66f1ce291d1af72671d6c (diff) | |
download | mongo-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.cpp | 4 |
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; } |