Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-56077

Require CSR lock when exiting the CSR critical section

    • 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.

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: