summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/shutdown.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/shutdown.h')
-rw-r--r--src/mongo/db/commands/shutdown.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/shutdown.h b/src/mongo/db/commands/shutdown.h
index 655d25b367f..e89aa301261 100644
--- a/src/mongo/db/commands/shutdown.h
+++ b/src/mongo/db/commands/shutdown.h
@@ -48,8 +48,8 @@ public:
virtual bool localHostOnlyIfNoAuth() {
return true;
}
- virtual bool slaveOk() const {
- return true;
+ AllowedOnSecondary secondaryAllowed() const override {
+ return AllowedOnSecondary::kAlways;
}
virtual void addRequiredPrivileges(const std::string& dbname,
const BSONObj& cmdObj,