summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/migration_destination_manager_legacy_commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/migration_destination_manager_legacy_commands.cpp')
-rw-r--r--src/mongo/db/s/migration_destination_manager_legacy_commands.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mongo/db/s/migration_destination_manager_legacy_commands.cpp b/src/mongo/db/s/migration_destination_manager_legacy_commands.cpp
index 1f6ac6ad58e..2511db498ed 100644
--- a/src/mongo/db/s/migration_destination_manager_legacy_commands.cpp
+++ b/src/mongo/db/s/migration_destination_manager_legacy_commands.cpp
@@ -57,6 +57,11 @@ class RecvChunkStartCommand : public ErrmsgCommandDeprecated {
public:
RecvChunkStartCommand() : ErrmsgCommandDeprecated("_recvChunkStart") {}
+ bool skipApiVersionCheck() const override {
+ // Internal command (server to server).
+ return true;
+ }
+
std::string help() const override {
return "internal";
}
@@ -141,6 +146,11 @@ class RecvChunkStatusCommand : public BasicCommand {
public:
RecvChunkStatusCommand() : BasicCommand("_recvChunkStatus") {}
+ bool skipApiVersionCheck() const override {
+ // Internal command (server to server).
+ return true;
+ }
+
std::string help() const override {
return "internal";
}
@@ -180,6 +190,11 @@ class RecvChunkCommitCommand : public BasicCommand {
public:
RecvChunkCommitCommand() : BasicCommand("_recvChunkCommit") {}
+ bool skipApiVersionCheck() const override {
+ // Internal command (server to server).
+ return true;
+ }
+
std::string help() const override {
return "internal";
}
@@ -229,6 +244,11 @@ class RecvChunkAbortCommand : public BasicCommand {
public:
RecvChunkAbortCommand() : BasicCommand("_recvChunkAbort") {}
+ bool skipApiVersionCheck() const override {
+ // Internal command (server to server).
+ return true;
+ }
+
std::string help() const override {
return "internal";
}