-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: IDL
-
None
-
Server Programmability
-
ALL
-
SP Prioritized List
A command's name is by default taken to be the field name that contains the command's definition, but it can be overridden by specifying the command_name field. The generated serializer does not use this overridden name though and will instead use the YAML map field name.
e.g.
the following definition:
clusterFsyncUnlock: command_name: fsyncUnlock cpp_name: clusterFsyncUnlock strict: false namespace: ignored api_version: ""
produces the following incorrectly generated serializer:
void ClusterFsyncUnlock::serialize(BSONObjBuilder* builder) const { _hasMembers.required(); builder->append("clusterFsyncUnlock"_sd, 1); { _genericArguments.serialize(builder); } }