summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/pipeline_command.cpp
diff options
context:
space:
mode:
authorVesselina Ratcheva <vesselina.ratcheva@10gen.com>2020-02-14 16:17:33 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-18 18:27:39 +0000
commit34dc015fcb40b8e4c2c99aadf1a78d7b64de6146 (patch)
tree62716f0181b9f755cce63ee6ad55ad1d0f42a636 /src/mongo/db/commands/pipeline_command.cpp
parentc18271eaf8bf8a85549ffec363748b40e57b9392 (diff)
downloadmongo-34dc015fcb40b8e4c2c99aadf1a78d7b64de6146.tar.gz
SERVER-45610 Reject commands that read data when node is in RECOVERING state
This reverts commit 542de84ec1e17520bd0d99d54a024ff0e0bc3de2. create mode 100644 jstests/libs/all_commands_test.js create mode 100644 jstests/replsets/db_reads_while_recovering_all_commands.js
Diffstat (limited to 'src/mongo/db/commands/pipeline_command.cpp')
-rw-r--r--src/mongo/db/commands/pipeline_command.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/commands/pipeline_command.cpp b/src/mongo/db/commands/pipeline_command.cpp
index a70ae8a51d3..d068dc2812a 100644
--- a/src/mongo/db/commands/pipeline_command.cpp
+++ b/src/mongo/db/commands/pipeline_command.cpp
@@ -168,7 +168,9 @@ public:
AllowedOnSecondary secondaryAllowed(ServiceContext*) const override {
return AllowedOnSecondary::kOptIn;
}
-
+ bool maintenanceOk() const override {
+ return false;
+ }
ReadWriteType getReadWriteType() const {
return ReadWriteType::kRead;
}