diff options
Diffstat (limited to 'src/mongo/db/commands/dbcommands.cpp')
-rw-r--r-- | src/mongo/db/commands/dbcommands.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/src/mongo/db/commands/dbcommands.cpp b/src/mongo/db/commands/dbcommands.cpp index 851004bbd28..d18fa21101f 100644 --- a/src/mongo/db/commands/dbcommands.cpp +++ b/src/mongo/db/commands/dbcommands.cpp @@ -173,43 +173,6 @@ public: }; } cmdDropDatabase; -class CmdRepairDatabase final : public TypedCommand<CmdRepairDatabase> { -public: - using Request = RepairDatabaseCommand; - - class Invocation final : public InvocationBase { - public: - using InvocationBase::InvocationBase; - - bool supportsWriteConcern() const final { - return false; - } - - NamespaceString ns() const final { - return NamespaceString(request().getDbName()); - } - - void doCheckAuthorization(OperationContext* opCtx) const final {} - - void typedRun(OperationContext*) { - uasserted(ErrorCodes::CommandNotFound, Request::kCommandDescription); - } - }; - - std::string help() const final { - return Request::kCommandDescription.toString(); - } - - AllowedOnSecondary secondaryAllowed(ServiceContext*) const final { - return AllowedOnSecondary::kAlways; - } - - bool maintenanceMode() const final { - return false; - } - -} cmdRepairDatabase; - /* drop collection */ class CmdDrop : public DropCmdVersion1Gen<CmdDrop> { public: |