|
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.
|