[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: |
|
||||||||||||||||||||
| 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): |