[SERVER-43858] Use MODE_IX instead of MODE_X db lock for creating collection in new db Created: 07/Oct/19  Updated: 29/Oct/23  Resolved: 17/Oct/19

Status: Closed
Project: Core Server
Component/s: Catalog, Concurrency
Affects Version/s: None
Fix Version/s: 4.3.1

Type: New Feature Priority: Major - P3
Reporter: Geert Bosch Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2019-10-21
Participants:

 Description   

In particular AutoGetOrCreateDb still uses a MODE_X database lock. The Database object has almost no state left, so this should "just" work.



 Comments   
Comment by Githook User [ 17/Oct/19 ]

Author:

{'name': 'Daniel Gottlieb', 'username': 'dgottlieb', 'email': 'daniel.gottlieb@mongodb.com'}

Message: SERVER-43858: Relax database creation lock acquisition from MODE_X to MODE_IX.
Branch: master
https://github.com/mongodb/mongo/commit/65decc93b23acf373d33d7453bb2ba745a6ef319

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