[SERVER-51862] Generate a C++ base class for each V1 command Created: 28/Oct/20  Updated: 29/Oct/23  Resolved: 23/Nov/20

Status: Closed
Project: Core Server
Component/s: IDL
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Samyukta Lanka Assignee: Samyukta Lanka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-51380 Define input/output for ping command ... Closed
is depended on by SERVER-52547 Convert commitTransaction and abortTr... Closed
is depended on by SERVER-52548 Convert create command implementation... Closed
is depended on by SERVER-52549 Convert createIndexes command impleme... Closed
is depended on by SERVER-52550 Convert drop command implementation t... Closed
is depended on by SERVER-52551 Convert dropDatabase command implemen... Closed
is depended on by SERVER-52552 Convert dropIndexes command implement... Closed
is depended on by SERVER-52553 Convert listCollections command imple... Closed
is depended on by SERVER-52554 Convert listDatabases command impleme... Closed
is depended on by SERVER-52555 Convert listIndexes command implement... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2020-11-16, Repl 2020-11-30
Participants:

 Description   

Update the IDL compiler to generate a C++ base class for each command in API Version 1. The generated base class inherits from TypedCommand, and it uses request and reply types generated from the IDL command. This forces the command implementation to use the proper request and reply types.



 Comments   
Comment by Githook User [ 30/Nov/20 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-51862 Use IDL structs' C++ names for base-class generation

Ensure that a versioned API command's base class is correctly generated from
IDL when the command's request type has a different C++ name from the command
name.
Branch: master
https://github.com/mongodb/mongo/commit/ae2321903392534b4993fb8be1fc482d975b4a1a

Comment by Githook User [ 23/Nov/20 ]

Author:

{'name': 'Samy Lanka', 'email': 'samy.lanka@mongodb.com', 'username': 'lankas'}

Message: SERVER-51862 Generate a C++ base class for each V1 command
Branch: master
https://github.com/mongodb/mongo/commit/a2c49f836faedb6ef9e6d43459f6d6949525e0b1

Generated at Thu Feb 08 05:26:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.