diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2018-01-31 14:17:57 -0500 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2018-01-31 14:42:00 -0500 |
commit | 40e43aca44d4dd251b7a1d0ce44c7cb49dcda93f (patch) | |
tree | 64d9c1fdd03afa929238bd6818fcb901daa40e2f /src/mongo/s/commands/cluster_available_query_options_cmd.cpp | |
parent | d75cb425fbc3cf4b569eb1722c3f8abec45654a2 (diff) | |
download | mongo-40e43aca44d4dd251b7a1d0ce44c7cb49dcda93f.tar.gz |
SERVER-32958 unrevert "SERVER-32958 slaveOk,slaveOverrideOk replacement"
w/fix: update a new command to secondaryAllowed
This reverts commit d75cb425fbc3cf4b569eb1722c3f8abec45654a2.
Diffstat (limited to 'src/mongo/s/commands/cluster_available_query_options_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_available_query_options_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_available_query_options_cmd.cpp b/src/mongo/s/commands/cluster_available_query_options_cmd.cpp index d209c2ace34..8eccb031358 100644 --- a/src/mongo/s/commands/cluster_available_query_options_cmd.cpp +++ b/src/mongo/s/commands/cluster_available_query_options_cmd.cpp @@ -39,8 +39,8 @@ class AvailableQueryOptions : public BasicCommand { public: AvailableQueryOptions() : BasicCommand("availableQueryOptions", "availablequeryoptions") {} - bool slaveOk() const override { - return true; + AllowedOnSecondary secondaryAllowed() const override { + return AllowedOnSecondary::kAlways; } bool supportsWriteConcern(const BSONObj& cmd) const override { |