[SERVER-74493] Make DatabaseName constructors private Created: 01/Mar/23  Updated: 29/Oct/23  Resolved: 28/Apr/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: Janna Golden Assignee: Mathis Bessa
Resolution: Fixed Votes: 0
Labels: ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-76085 Create createDatabaseName_forTest to ... Closed
Related
is related to SERVER-76294 Remove DatabaseName::createDatabaseNa... Closed
is related to SERVER-77646 Add OplogInterfaceRemote test coverag... Closed
Assigned Teams:
Serverless
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-04-17, Server Serverless 2023-05-01
Participants:
Story Points: 5

 Description   

In order to enforce the correct behavior every time we construct a DatabaseName, we need to check global options. We must check these options from outside the DBN class itself, so we'll privatize the constructors and enforce construction through DatabaseNameUtil (which will need to be a friend class). There are some places that we construct a DBN today that are not yet ready for the behavior checks to be enforced, specifically some parts of the auth system. We may need to create specific functions to allow these to be constructed for now, and leave TODOs to remove those functions in the future.



 Comments   
Comment by Githook User [ 27/Apr/23 ]

Author:

{'name': 'mathisbessamdb', 'email': 'mathis.bessa@mongodb.com', 'username': 'mathisbessamdb'}

Message: SERVER-74493 Make DatabaseName constructors private - test files
Branch: master
https://github.com/mongodb/mongo/commit/4807eda6d4f199b4ce52e7c1d79edf263809cacc

Comment by Githook User [ 26/Apr/23 ]

Author:

{'name': 'mathisbessamdb', 'email': 'mathis.bessa@mongodb.com', 'username': 'mathisbessamdb'}

Message: SERVER-74493 Make DatabaseName constructors private
Branch: master
https://github.com/mongodb/mongo/commit/18659bb538d2ba53d5c93ac5a9df834c7cb7fe41

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