summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/clone.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/clone.cpp')
-rw-r--r--src/mongo/db/commands/clone.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/commands/clone.cpp b/src/mongo/db/commands/clone.cpp
index e7ec4973221..0e50419a5df 100644
--- a/src/mongo/db/commands/clone.cpp
+++ b/src/mongo/db/commands/clone.cpp
@@ -56,11 +56,10 @@ class CmdClone : public BasicCommand {
public:
CmdClone() : BasicCommand("clone") {}
- virtual bool slaveOk() const {
- return false;
+ AllowedOnSecondary secondaryAllowed() const override {
+ return AllowedOnSecondary::kNever;
}
-
virtual bool supportsWriteConcern(const BSONObj& cmd) const override {
return true;
}