summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/resize_oplog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/resize_oplog.cpp')
-rw-r--r--src/mongo/db/commands/resize_oplog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/resize_oplog.cpp b/src/mongo/db/commands/resize_oplog.cpp
index 4373c9c9dd5..ef853e9bb17 100644
--- a/src/mongo/db/commands/resize_oplog.cpp
+++ b/src/mongo/db/commands/resize_oplog.cpp
@@ -54,8 +54,8 @@ class CmdReplSetResizeOplog : public BasicCommand {
public:
CmdReplSetResizeOplog() : BasicCommand("replSetResizeOplog") {}
- virtual bool slaveOk() const final {
- return true;
+ AllowedOnSecondary secondaryAllowed() const override {
+ return AllowedOnSecondary::kAlways;
}
bool adminOnly() const final {