[SERVER-56077] Require CSR lock when exiting the CSR critical section Created: 13/Apr/21  Updated: 29/Oct/23  Resolved: 14/Apr/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Pierlauro Sciarelli
Resolution: Fixed Votes: 0
Labels: PM-1965-Milestone-1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2021-05-03
Participants:

 Description   

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.


 Comments   
Comment by Githook User [ 14/Apr/21 ]

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-56077 Require CSR lock when exiting the CSR critical section
Branch: master
https://github.com/mongodb/mongo/commit/d3d6215adebe862ed2b7ed72ed36ef41a8380f79

Generated at Thu Feb 08 05:38:15 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.