[SERVER-68422] Add a new API CommandHelpers::parseNsFromCommand(const DatabaseName& dbName, const BSONObj& cmdObj) 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
is depended on by SERVER-68398 Change BasicCommandWithReplyBuilderIn... Closed
is depended on by SERVER-68423 Remove CommandHelpers::parseNsFromCom... Closed
Issue split
split from SERVER-67519 Change CommandHelpers::parseNs* metho... Open
Backwards Compatibility: Major Change
Sprint: Server Serverless 2022-08-08
Participants:

 Description   

We have a static function CommandHelpers::parseNsFromCommand which takes in db name string and cmdObj to create NamespaceString.

In this ticket, we will add a same name function but this new one will take in DatabaseName instead of db name string so that it can construct NamespaceString with tenant id.

A lot of tickets will depend on the new function. The old function will be removed one all call places use the new function. We will have another ticket to remove the old function.



 Comments   
Comment by Janna Golden [ 01/Sep/22 ]

Commit (I think the bot was broken):
https://github.com/mongodb/mongo/commit/afbfb806fc9b7ff3a9d10a895ee33e6ee7f85529

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