summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2016-06-21 16:16:38 -0400
committerEric Milkie <milkie@10gen.com>2016-06-21 16:20:11 -0400
commit7ebc2695ae310260c4706834c25e34489b57c72e (patch)
tree9abd7cf957d42382427a4ca51d01f8cd87e06f40
parent0d430c589372d736bd952f66527a00734f0b0eed (diff)
downloadmongo-7ebc2695ae310260c4706834c25e34489b57c72e.tar.gz
SERVER-24700 fix erroneous curop assumption in stepdown_kill_other_ops.js
(cherry picked from commit 19f74551c4289c83e2c5aa3dc041255bf4587d8a)
-rw-r--r--jstests/replsets/stepdown_kill_other_ops.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/replsets/stepdown_kill_other_ops.js b/jstests/replsets/stepdown_kill_other_ops.js
index e55fce17be0..930206046c1 100644
--- a/jstests/replsets/stepdown_kill_other_ops.js
+++ b/jstests/replsets/stepdown_kill_other_ops.js
@@ -45,8 +45,9 @@
for (var index in res.inprog) {
var entry = res.inprog[index];
if (entry["query"] && entry["query"]["$eval"]) {
- assert.eq("W", entry["locks"]["Global"]);
- return true;
+ if ("W" === entry["locks"]["Global"]) {
+ return true;
+ }
}
}
printjson(res);