diff options
author | Eric Milkie <milkie@10gen.com> | 2016-06-21 16:16:38 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2016-06-21 16:20:11 -0400 |
commit | 7ebc2695ae310260c4706834c25e34489b57c72e (patch) | |
tree | 9abd7cf957d42382427a4ca51d01f8cd87e06f40 /jstests/replsets/stepdown_kill_other_ops.js | |
parent | 0d430c589372d736bd952f66527a00734f0b0eed (diff) | |
download | mongo-7ebc2695ae310260c4706834c25e34489b57c72e.tar.gz |
SERVER-24700 fix erroneous curop assumption in stepdown_kill_other_ops.js
(cherry picked from commit 19f74551c4289c83e2c5aa3dc041255bf4587d8a)
Diffstat (limited to 'jstests/replsets/stepdown_kill_other_ops.js')
-rw-r--r-- | jstests/replsets/stepdown_kill_other_ops.js | 5 |
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); |