summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/authentication_commands.h
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2018-01-31 14:30:51 -0500
committerJudah Schvimer <judah@mongodb.com>2018-01-31 14:30:51 -0500
commitd75cb425fbc3cf4b569eb1722c3f8abec45654a2 (patch)
tree95f285d0be51aeafbb22d1ac37bb615df28f20b7 /src/mongo/db/commands/authentication_commands.h
parentbe24b0323d3f2d424d9e22337f4221d39001ac31 (diff)
downloadmongo-d75cb425fbc3cf4b569eb1722c3f8abec45654a2.tar.gz
Revert "SERVER-32958 slaveOk,slaveOverrideOk replacement"
This reverts commit be24b0323d3f2d424d9e22337f4221d39001ac31.
Diffstat (limited to 'src/mongo/db/commands/authentication_commands.h')
-rw-r--r--src/mongo/db/commands/authentication_commands.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/authentication_commands.h b/src/mongo/db/commands/authentication_commands.h
index 5e886827256..a5123fb932b 100644
--- a/src/mongo/db/commands/authentication_commands.h
+++ b/src/mongo/db/commands/authentication_commands.h
@@ -40,8 +40,8 @@ class CmdAuthenticate : public BasicCommand {
public:
static void disableAuthMechanism(std::string authMechanism);
- AllowedOnSecondary secondaryAllowed() const override {
- return AllowedOnSecondary::kAlways;
+ virtual bool slaveOk() const {
+ return true;
}
std::string help() const override {
return "internal";