-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
Server Serverless 2022-12-26
-
1
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
Here is an example of IDL generated command for renameCollection which has a namespacestring command parametet. The generated code drops off the tenant id.
{ // skip correct codes. if (MONGO_likely(ctxt.checkAndAssertType(commandElement, String))) { _commandParameter = NamespaceStringUtil::deserialize(boost::optional<mongo::TenantId>{}, commandElement.valueStringData()); } else { ctxt.throwMissingField(kCommandParameterFieldName); } }
Actually, "NamespaceStringUtil::deserialize(ctxt.getTenantId(), commandElement.valueStringData())" is expected.