[SERVER-62923] Change DB lock RAII types to use DatabaseName Created: 24/Jan/22  Updated: 29/Oct/23  Resolved: 20/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: 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-62918 Change DBLock to use DatabaseName Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2022-07-11, Server Serverless 2022-07-25
Participants:

 Description   

Change AutoGetDB, AutoGetDbForReadLockFree, and AutoGetDbForReadMaybeLockFree to take in and use DatabaseName. Change these functions to pass the DatabaseName to the DBLock and DBHolder.

AutoGetDb is unit tested by the CatalogRAIITestFixture, and we should add/change tests there.



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

Author:

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

Message: SERVER-62923 Change DB lock RAII types to use DatabaseName
Branch: master
https://github.com/mongodb/mongo/commit/299c4b3e46075a01ab8d0989bca5358a2b0603ae

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