summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_is_master_cmd.cpp
diff options
context:
space:
mode:
authorPV99 <pridhvi.vegesna@mongodb.com>2020-07-15 23:13:33 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-28 23:56:02 +0000
commit4e0f81726fc11becd9c22d701e80ba2c8d988bb0 (patch)
tree620edb4e906caa933c4f6cd1d04bce42b290be98 /src/mongo/s/commands/cluster_is_master_cmd.cpp
parent165dfb50f7693cadb80e988d08222700b1cc6b5c (diff)
downloadmongo-4e0f81726fc11becd9c22d701e80ba2c8d988bb0.tar.gz
SERVER-49065 Mark API Version 1 commands
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;
}