summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/shardsvr_move_primary_command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/shardsvr_move_primary_command.cpp')
-rw-r--r--src/mongo/db/s/shardsvr_move_primary_command.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/s/shardsvr_move_primary_command.cpp b/src/mongo/db/s/shardsvr_move_primary_command.cpp
index 4abf7d7af5c..de96165a672 100644
--- a/src/mongo/db/s/shardsvr_move_primary_command.cpp
+++ b/src/mongo/db/s/shardsvr_move_primary_command.cpp
@@ -45,6 +45,11 @@ class MovePrimaryCommand : public BasicCommand {
public:
MovePrimaryCommand() : BasicCommand("_shardsvrMovePrimary") {}
+ bool skipApiVersionCheck() const override {
+ // Internal command (server to server).
+ return true;
+ }
+
std::string help() const override {
return "should not be calling this directly";
}