[SERVER-74562] always set fromMigrate in OpObserverImpl::onCreateIndexes and onCreateCollection Created: 02/Mar/23  Updated: 29/Oct/23  Resolved: 08/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-73051 Streamline logical branches in opObse... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2023-03-20
Participants:

 Description   

logMutableOplogEntry current ignores fromMigrate for createIndexes and createCollection operations that are in a multi-document transaction. This is slightly inconsistent with the fromMigrate treatment in some other OpObserver methods such as onDelete.

This change is effectively a no-op for the multi-document transaction case because we don't current use these operations for chunk migration in transactions.



 Comments   
Comment by Githook User [ 03/Mar/23 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-74562 always set fromMigrate (if true) in OpObserverImpl::onCreateIndexes and onCreateCollection

This change is effectively a no-op for the multi-document transaction case because we
don't current use these operations for chunk migration in transactions.
Branch: master
https://github.com/mongodb/mongo/commit/4f07b59413fd6053ad8033934c4312fecbcbd5d9

Generated at Thu Feb 08 06:27:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.