[SERVER-63650] Change Locker::isDbLockedForMode to take in DatabaseName Created: 15/Feb/22  Updated: 29/Oct/23  Resolved: 11/Jul/22

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

Type: Task Priority: Major - P3
Reporter: Sophia Tan Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-62918 Change DBLock to use DatabaseName Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2022-07-11, Server Serverless 2022-07-25
Participants:

 Description   

Let's change Locker::isDbLockedForMode to take in DatabaseName as well. LockerImpl:isDbLockedForMode constructs the ResourceId and checks whether we're holding a lock on it, so we'll need to again pass DatabseName.toString() to the ResourceId constructor here.



 Comments   
Comment by Githook User [ 11/Jul/22 ]

Author:

{'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}

Message: SERVER-63650 Change Locker::isDbLockedForMode to take in DatabaseName
Branch: master
https://github.com/mongodb/mongo/commit/3f5e02a10ad19d4694c82d93e4a4e3a0b36c0fb1

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