[SERVER-78046] Check DatabaseName object is admin, config or local via functions Created: 13/Jun/23  Updated: 29/Oct/23  Resolved: 20/Jun/23

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

Type: Task Priority: Major - P3
Reporter: Sophia Tan Assignee: Sophia Tan
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-77537 Make DatabaseName::db() private Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-06-26
Participants:
Story Points: 1

 Description   

Currently, we have isAdminDB(), isConfigDB() and isLocalDB() in NamespaceString class. We also need the similar functions in DatabaseName class.
Here are the motivations to do this:

  • DatabaseName::db() will be private. Then, we cannot compare the result of `db()` with string "local", "config" and "local".
  • Put all the raw db string compare into one central place.


 Comments   
Comment by Githook User [ 16/Jun/23 ]

Author:

{'name': 'Sophia Tan', 'email': 'sophia_tll@hotmail.com', 'username': 'sophiatll'}

Message: SERVER-78046 Check DatabaseName object is admin, config or local via functions
Branch: master
https://github.com/mongodb/mongo/commit/26e7c0516f68cc347c48615e59a5a0425ce6a47d

Generated at Thu Feb 08 06:37:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.