diff options
author | Tommaso Tocci <tommaso.tocci@mongodb.com> | 2021-07-26 12:10:15 +0200 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-27 16:46:25 +0000 |
commit | 1b8d8f798c353b2661e9063281ce3fe3c6882545 (patch) | |
tree | bcf69ff92e2cfeb714d1227619d00cf81dc9c70f /src/mongo/s | |
parent | 7cccaa4720c8ca16e7c8a35d325ea281fc1f9e2e (diff) | |
download | mongo-1b8d8f798c353b2661e9063281ce3fe3c6882545.tar.gz |
SERVER-58595 Remove legacy ConfigsvrCommitMovePrimary command
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/commands/cluster_move_primary_cmd.cpp | 6 | ||||
-rw-r--r-- | src/mongo/s/request_types/move_primary.idl | 29 |
2 files changed, 0 insertions, 35 deletions
diff --git a/src/mongo/s/commands/cluster_move_primary_cmd.cpp b/src/mongo/s/commands/cluster_move_primary_cmd.cpp index 19921e057a5..896db1fdf8a 100644 --- a/src/mongo/s/commands/cluster_move_primary_cmd.cpp +++ b/src/mongo/s/commands/cluster_move_primary_cmd.cpp @@ -31,17 +31,12 @@ #include "mongo/platform/basic.h" -#include "mongo/bson/util/bson_extract.h" -#include "mongo/db/audit.h" #include "mongo/db/auth/action_type.h" #include "mongo/db/auth/authorization_session.h" #include "mongo/db/commands.h" #include "mongo/logv2/log.h" -#include "mongo/rpc/write_concern_error_detail.h" -#include "mongo/s/catalog/sharding_catalog_client.h" #include "mongo/s/catalog/type_shard.h" #include "mongo/s/catalog_cache.h" -#include "mongo/s/client/shard_registry.h" #include "mongo/s/cluster_commands_helpers.h" #include "mongo/s/grid.h" #include "mongo/s/request_types/move_primary_gen.h" @@ -108,7 +103,6 @@ public: ShardMovePrimary movePrimaryRequest; movePrimaryRequest.set_shardsvrMovePrimary(NamespaceString(db)); movePrimaryRequest.setTo(toShard); - movePrimaryRequest.setCommandIsFromRouter(true); auto catalogCache = Grid::get(opCtx)->catalogCache(); const auto dbInfo = uassertStatusOK(catalogCache->getDatabase(opCtx, db)); diff --git a/src/mongo/s/request_types/move_primary.idl b/src/mongo/s/request_types/move_primary.idl index 371a79aa99e..51d4a095b8a 100644 --- a/src/mongo/s/request_types/move_primary.idl +++ b/src/mongo/s/request_types/move_primary.idl @@ -62,32 +62,3 @@ structs: to: type: string description: "The shard serving as the destination for un-sharded collections." - # TODO SERVER-54879 remove the following field and adapt the code accordingly once 5.0 becomes last-LTS - commandIsFromRouter: - type: bool - description: "Indicates whether the command has been sent by a router" - default: false - - # TODO SERVER-54879 remove this parser once 5.0 becomes last-LTS - ConfigsvrMovePrimary: - description: "The internal movePrimary command on the config server" - strict: false - fields: - _configsvrMovePrimary: - type: namespacestring - description: "The namespace of the database whose primary shard is to be reassigned." - to: - type: string - description: "The shard serving as the destination for un-sharded collections." - - # TODO SERVER-54879 remove this parser once 5.0 becomes last-LTS - ConfigsvrCommitMovePrimary: - description: "The internal commitMovePrimary command on the config server" - strict: false - fields: - _configsvrCommitMovePrimary: - type: string - description: "The namespace of the database whose primary shard is to be reassigned." - to: - type: string - description: "The shard serving as the destination for un-sharded collections." |