diff options
author | Ian Boros <ian.boros@mongodb.com> | 2020-02-14 18:37:38 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-02-14 18:37:38 +0000 |
commit | 542de84ec1e17520bd0d99d54a024ff0e0bc3de2 (patch) | |
tree | e5fe662f80d3a2e59bfc524e07ab98b0cfcda2e7 /jstests/replsets/maintenance2.js | |
parent | 453095e2e5028de3991d0d28692e298957213214 (diff) | |
download | mongo-542de84ec1e17520bd0d99d54a024ff0e0bc3de2.tar.gz |
Revert "SERVER-45610 Reject commands that read data when node is in RECOVERING state"
This reverts commit ea7294598dc4621245739da201c0aeaf11aaf957.
Diffstat (limited to 'jstests/replsets/maintenance2.js')
-rw-r--r-- | jstests/replsets/maintenance2.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/jstests/replsets/maintenance2.js b/jstests/replsets/maintenance2.js index 88561dc693e..a2d2c3f7674 100644 --- a/jstests/replsets/maintenance2.js +++ b/jstests/replsets/maintenance2.js @@ -34,7 +34,7 @@ assert.eq(2, slaves.length, "Expected 2 slaves but length was " + slaves.length) slaves.forEach(function(slave) { // put slave into maintenance (recovery) mode - assert.commandWorked(slave.getDB("foo").adminCommand({replSetMaintenance: 1})); + slave.getDB("foo").adminCommand({replSetMaintenance: 1}); var stats = slave.getDB("foo").adminCommand({replSetGetStatus: 1}); assert.eq(stats.myState, 3, "Slave should be in recovering state."); @@ -42,9 +42,6 @@ slaves.forEach(function(slave) { print("count should fail in recovering state..."); slave.slaveOk = true; assert.commandFailed(slave.getDB("foo").runCommand({count: "foo"})); - - // unset maintenance mode when done - assert.commandWorked(slave.getDB("foo").adminCommand({replSetMaintenance: 0})); }); // Shut down the set and finish the test. |