[SERVER-79074] Replace NamespaceString::db() with NamespaceString::db_deprecated() Created: 18/Jul/23  Updated: 29/Oct/23  Resolved: 25/Jul/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: Mathis Bessa Assignee: Mathis Bessa
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-79187 Investigate the performance impact of... Closed
is depended on by SERVER-65456 Make NamespaceString::db_deprecated()... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-07-24, Server Serverless 2023-08-07
Participants:

 Description   

In an effort to finish SERVER-65456 we will replace all calls to `NamespaceString::db()` with `NamespaceString::db_deprecated()`.

This will help enforcing as soon as possible that any developer will be using the appropriate `NamespaceString::dbName()` method when needed.

In case of serialization we should indicate as part of a comment that `DatabaseNameUtil::serialization(nss.dbName())` can be an alternative



 Comments   
Comment by Githook User [ 25/Jul/23 ]

Author:

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

Message: SERVER-79074 Replace NamespaceString::db() with NamespaceString::db_deprecated()
Branch: master
https://github.com/mongodb/mongo/commit/7163de836c37d63699a8de5facbd1d8f76c077cf

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