summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_is_master_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/commands/cluster_is_master_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_is_master_cmd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_is_master_cmd.cpp b/src/mongo/s/commands/cluster_is_master_cmd.cpp
index 778ec8aae17..cab3fca4f18 100644
--- a/src/mongo/s/commands/cluster_is_master_cmd.cpp
+++ b/src/mongo/s/commands/cluster_is_master_cmd.cpp
@@ -59,6 +59,10 @@ class CmdIsMaster : public BasicCommandWithReplyBuilderInterface {
public:
CmdIsMaster() : BasicCommandWithReplyBuilderInterface("isMaster", "ismaster") {}
+ const std::set<std::string>& apiVersions() const {
+ return kApiVersions1;
+ }
+
bool supportsWriteConcern(const BSONObj& cmd) const override {
return false;
}