diff options
author | Pavithra Vetriselvan <pavithra.vetriselvan@mongodb.com> | 2019-09-24 18:43:38 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-09-24 18:43:38 +0000 |
commit | 1a3936b3ee365de5dde80e440c01fa6e868a1a54 (patch) | |
tree | 379083e43d6716bc4e7ce42dc2104e936f46ec7b /src/mongo/db/commands/validate.cpp | |
parent | 108425fdd063a0c7dae50b2d48d3dadea35a0557 (diff) | |
download | mongo-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.cpp | 4 |
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 { |