[SERVER-62918] Change DBLock to use DatabaseName Created: 24/Jan/22  Updated: 29/Oct/23  Resolved: 27/Jun/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: Janna Golden Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-63650 Change Locker::isDbLockedForMode to t... Closed
depends on SERVER-63698 Change DBLock constructor to take in ... Closed
is depended on by SERVER-62923 Change DB lock RAII types to use Data... Closed
Duplicate
is duplicated by SERVER-63698 Change DBLock constructor to take in ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2022-06-27, Server Serverless 2022-07-11
Participants:

 Description   

Currently, DBLock takes in a dbName as a string, and then passes the to the ResourceId constructor, which takes the hash of the string. We should change the DBLock constructor to take in DatabaseName, but should still pass a string to the ResourceId constructor. ResourceId computes a hash of the string it is passed, and this is what we actually take the lock on.



 Comments   
Comment by Githook User [ 27/Jun/22 ]

Author:

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

Message: SERVER-62918 Change DBLock to use DatabaseName
Branch: master
https://github.com/mongodb/mongo/commit/ab5428c183b85d97c8c7016de4aefa34d055adcb

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