-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication, Sharding
-
Fully Compatible
-
Sharding 2020-10-05, Sharding 2020-10-19
- Add a decoration on OperationContext (similar to documentKeyDecoration) for the destined recipient.
- Emplace the decoration with the result of getDestinedRecipient() in OpObserverImpl::aboutToDelete().
- Call MutableOplogEntry::setReshardDest() with the value emplaced in the decoration in MutableOplogEntry::makeDeleteOperation(). (for transactions)
- Call MutableOplogEntry::setReshardDest() with the value emplaced in the decoration in replLogDelete(). (for non-transactions)
- has to be done after
-
SERVER-49820 Allow setting destined recipient in oplog entries
- Closed
-
SERVER-49821 Define utility function for getting recipient which would own document under new shard key
- Closed