summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/copydb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/copydb.cpp')
-rw-r--r--src/mongo/db/commands/copydb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/copydb.cpp b/src/mongo/db/commands/copydb.cpp
index 297ec8f1c10..99178166050 100644
--- a/src/mongo/db/commands/copydb.cpp
+++ b/src/mongo/db/commands/copydb.cpp
@@ -95,8 +95,8 @@ public:
return true;
}
- virtual bool slaveOk() const {
- return false;
+ AllowedOnSecondary secondaryAllowed() const override {
+ return AllowedOnSecondary::kNever;
}
virtual bool supportsWriteConcern(const BSONObj& cmd) const override {