diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2022-09-13 15:51:30 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-09-13 19:06:26 +0000 |
commit | fa534d676f5f673a6a7f3ea656f650ff108b7f92 (patch) | |
tree | 44afb7b2a94ddca550e4d05369c5bc60696c6ec9 /src/mongo/db | |
parent | 85ec8439047fae7c337501987a38ef97a7596e0f (diff) | |
download | mongo-fa534d676f5f673a6a7f3ea656f650ff108b7f92.tar.gz |
SERVER-69348 Remove repairDatabase command
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/commands/dbcommands.cpp | 37 | ||||
-rw-r--r-- | src/mongo/db/dbcommands.idl | 11 |
2 files changed, 0 insertions, 48 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: diff --git a/src/mongo/db/dbcommands.idl b/src/mongo/db/dbcommands.idl index 51df0e963fe..82b476b1555 100644 --- a/src/mongo/db/dbcommands.idl +++ b/src/mongo/db/dbcommands.idl @@ -214,14 +214,3 @@ commands: description: Include additional stats about allocated but unused space. type: safeBool default: false - - repairDatabase: - description: |- - This command has been removed. If you would like to compact your data, use the 'compact' command. - If you would like to rebuild indexes, use the 'reIndex' command. - If you need to recover data, please see the documentation for repairing your database offline: - http://dochub.mongodb.org/core/repair - command_name: repairDatabase - cpp_name: RepairDatabaseCommand - api_version: '' - namespace: ignored |