-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
Sharding 2020-11-16, Sharding 2020-11-30
Add a utility function to ScopedCollectionDescription that will return whether a write must be run in a distributed transaction. This function should return true if the 'state' field in reshardingFields is any of 'preparingToMirror', 'mirroring', 'committed', 'renaming', or 'dropping'.
If any of these states on startup, automatically queue writes for distributed transactions.