-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Replication
-
Labels:None
-
Replication
We do not need to hold the tenant migration recipient service mutex while reading the state doc in the main chain. It should be impossible for another thread to be changing _stateDoc.
reportForCurrentOp requires the mutex before reading the _stateDoc because the operation comes from a user thread.