diff options
author | Maddie Zechar <mez2113@columbia.edu> | 2022-04-21 22:12:28 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-21 22:46:07 +0000 |
commit | 49956338b388412bcc2883d2fe79e3727465c04c (patch) | |
tree | 2450fc22d57a68c19a4b3e01646daf7834c6b572 /src/mongo/s | |
parent | f06c72c0999e07319b909e1a983d7b71dbbf28ab (diff) | |
download | mongo-49956338b388412bcc2883d2fe79e3727465c04c.tar.gz |
SERVER-63850: Add the count command to API version 1
Diffstat (limited to 'src/mongo/s')
-rw-r--r-- | src/mongo/s/commands/cluster_count_cmd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_count_cmd.cpp b/src/mongo/s/commands/cluster_count_cmd.cpp index d22b8279a17..588a5e41814 100644 --- a/src/mongo/s/commands/cluster_count_cmd.cpp +++ b/src/mongo/s/commands/cluster_count_cmd.cpp @@ -53,6 +53,10 @@ class ClusterCountCmd : public ErrmsgCommandDeprecated { public: ClusterCountCmd() : ErrmsgCommandDeprecated("count") {} + const std::set<std::string>& apiVersions() const { + return kApiVersions1; + } + AllowedOnSecondary secondaryAllowed(ServiceContext*) const override { return AllowedOnSecondary::kAlways; } |