diff options
author | Samy Lanka <samy.lanka@mongodb.com> | 2020-11-20 01:05:41 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-23 22:56:55 +0000 |
commit | a2c49f836faedb6ef9e6d43459f6d6949525e0b1 (patch) | |
tree | 99649396eae188385786d268e1011c848d8392a6 /src/mongo/db | |
parent | 7654bb8401386c2ae2a6e482e973227ce6c0e98b (diff) | |
download | mongo-a2c49f836faedb6ef9e6d43459f6d6949525e0b1.tar.gz |
SERVER-51862 Generate a C++ base class for each V1 command
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/commands/generic.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/mongo/db/commands/generic.cpp b/src/mongo/db/commands/generic.cpp index 4c3bc4ca914..52ed0d5c556 100644 --- a/src/mongo/db/commands/generic.cpp +++ b/src/mongo/db/commands/generic.cpp @@ -52,27 +52,6 @@ using std::string; using std::stringstream; using std::vector; -// TODO (SERVER-51862): generate PingCmdVersion1Gen from IDL. -template <typename Derived> -class PingCmdVersion1Gen : public TypedCommand<Derived> { - using _TypedCommandInvocationBase = typename TypedCommand<Derived>::InvocationBase; - -public: - using Request = Ping; - using Reply = OkReply; - virtual const std::set<std::string>& apiVersions() const override { - return kApiVersions1; - } - virtual const std::set<std::string>& deprecatedApiVersions() const override { - return kNoApiVersions; - } - class InvocationBaseGen : public _TypedCommandInvocationBase { - public: - using _TypedCommandInvocationBase::_TypedCommandInvocationBase; - virtual Reply typedRun(OperationContext* opCtx) = 0; - }; -}; - class PingCommand : public PingCmdVersion1Gen<PingCommand> { public: AllowedOnSecondary secondaryAllowed(ServiceContext*) const override { |