Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
ALL
-
Server Serverless 2022-12-26
-
1
Description
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.