-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Server Serverless 2022-08-08
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.
- depends on
-
SERVER-68420 Add a new CommandHelpers::parseNsCollectionRequired to construct Namespace with tenantId
- Closed
-
SERVER-68422 Add a new API CommandHelpers::parseNsFromCommand(const DatabaseName& dbName, const BSONObj& cmdObj)
- Closed
- is depended on by
-
SERVER-67459 Change BasicCommand to use DatabaseName
- Closed