-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Labels:
-
Fully Compatible
-
Sharding EMEA 2021-05-03
While the methods for entering the critical section are expecting the CSR lock to be passed as argument, the release method is internally acquiring it.
Goals of this ticket:
- Make the interface uniform: all methods must expect the caller to acquire and pass the CSR lock.
- Get rid of this invariant checking that the collection lock is held on exit: when releasing the critical section upon stepdown, it is not possible to acquire any db/collection lock.