SERVER-121287 introduced a _makeOperationContext helper in the donor and recipient that considers the participant's state to decide the priority of its operation. These states are generally read and written to by the participant's main thread, but the ReshardingChangeStreamsMonitor updates their states from a separate thread (recipient, donor).
_makeOperationContext should therefore hold the mutex while reading the state.
- is related to
-
SERVER-121287 Mark resharding operations under the critical section as non-deprioritizable
-
- Closed
-