[SERVER-68398] Change BasicCommandWithReplyBuilderInterface::parseNs to take in DatabaseName and BSONObj and return NamespaceString object Created: 28/Jul/22  Updated: 29/Oct/23  Resolved: 07/Sep/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.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
depends on SERVER-68420 Add a new CommandHelpers::parseNsColl... Closed
depends on SERVER-68422 Add a new API CommandHelpers::parseNs... Closed
is depended on by SERVER-67459 Change BasicCommand to use DatabaseName Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2022-08-08
Participants:

 Description   

Today, we have an API BasicCommandWithReplyBuilderInterface::parseNs which takes in db name string and returns namespace string. 

virtual std::string parseNs(const std::string& dbname, const BSONObj& cmdObj) const 

With SERVER-67459, BasicCommand will use DatabaseName, that means we can parseNs with the DatabaseName to create NamespaceString directly. In this ticket, we will add a new API for it. Then, SERVER-67459 can use this new parseNs API.

virtual NamespaceString parseNs(const DatabaseName& dbname, const BSONObj& cmdObj) const  

After the new API is widely used, we should check wether we can remove the old API. 


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