[SERVER-57357] listDatabases should be a lock-free operation like listCollections and listIndexes Created: 02/Jun/21  Updated: 29/Oct/23  Resolved: 08/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.2.0

Type: Task Priority: Major - P3
Reporter: Henrik Edin Assignee: Yuhong Zhang
Resolution: Fixed Votes: 0
Labels: techdebt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-10-18
Participants:

 Description   

listDatabases should not need to take Database or Collection level MODE_IS locks.

A consistant view of the CollectionCatalog can be established with AutoGetDbLockFree and from there all necessary data should be accessible.



 Comments   
Comment by Githook User [ 07/Oct/21 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'danielzhangyh@gmail.com', 'username': 'YuhongZhang98'}

Message: SERVER-57357 Make `listDatabases` a lock-free operation
Branch: master
https://github.com/mongodb/mongo/commit/749d18149e33b9bb1df781505daf6fdea6f34ce0

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