summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/validate.cpp
diff options
context:
space:
mode:
authorPavithra Vetriselvan <pavithra.vetriselvan@mongodb.com>2019-09-24 18:43:38 +0000
committerevergreen <evergreen@mongodb.com>2019-09-24 18:43:38 +0000
commit1a3936b3ee365de5dde80e440c01fa6e868a1a54 (patch)
tree379083e43d6716bc4e7ce42dc2104e936f46ec7b /src/mongo/db/commands/validate.cpp
parent108425fdd063a0c7dae50b2d48d3dadea35a0557 (diff)
downloadmongo-1a3936b3ee365de5dde80e440c01fa6e868a1a54.tar.gz
SERVER-42312 disallow validate cmd during rollback and recovering states
Diffstat (limited to 'src/mongo/db/commands/validate.cpp')
-rw-r--r--src/mongo/db/commands/validate.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/commands/validate.cpp b/src/mongo/db/commands/validate.cpp
index 796dd204996..9d670291a6b 100644
--- a/src/mongo/db/commands/validate.cpp
+++ b/src/mongo/db/commands/validate.cpp
@@ -97,6 +97,10 @@ public:
return true;
}
+ bool maintenanceOk() const override {
+ return false;
+ }
+
virtual void addRequiredPrivileges(const std::string& dbname,
const BSONObj& cmdObj,
std::vector<Privilege>* out) const {