[SERVER-78112] Change call sites of `DatabaseName::db()` in shard code to use other proper functions Created: 15/Jun/23  Updated: 29/Oct/23  Resolved: 23/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: ntdi_must_have
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   

As we are making the `DatabaseName::db()` private, all the call sites of it should be changed to replace it with a proper function.

  • For serialization nss/db cases: Before we start to support shard in serverless, there is no tenant in shard. So, we decided to call `DatabaseNameUtil::serialize` function to serialize the DatabaseName object to string. 
  • For check empty db, call `.isEmpty()`
  • For create opmsgrequest, call `create` with DatabaseName object.

 



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

Author:

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

Message: SERVER-78112 Change call sites of `DatabaseName::db()` in shard code to use other proper functions
Branch: master
https://github.com/mongodb/mongo/commit/033e17086e156bec6f00546e8ccf020920c3f6ef

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