summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-01-25 23:28:15 -0500
committerEliot Horowitz <eliot@10gen.com>2012-01-25 23:28:15 -0500
commit773a8eb74303533a29709bec5baa95c6a930ede7 (patch)
tree82c4175fca35decb498b024748c3ab9623d3a457
parent27f207582aec390aadebcc4ec0dabf77df78c003 (diff)
downloadmongo-773a8eb74303533a29709bec5baa95c6a930ede7.tar.gz
more reliable killop test
-rw-r--r--jstests/killop.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/killop.js b/jstests/killop.js
index a458676fc0a..b0d5ea3bf07 100644
--- a/jstests/killop.js
+++ b/jstests/killop.js
@@ -4,7 +4,7 @@ t.drop();
//if ( typeof _threadInject == "undefined" ) { // don't run in v8 mode - SERVER-1900
function debug( x ) {
- printjson( x );
+ //printjson( x );
}
t.save( {} );
@@ -19,7 +19,7 @@ function ops() {
// We *can't* check for ns, b/c it's not guaranteed to be there unless the query is active, which
// it may not be in our polling cycle - particularly b/c we sleep every second in both the query and
// the assert
- if ( o.active && o.query && o.query.query && o.query.query.$where && o.query.count == "jstests_killop" ) {
+ if ( ( o.active || o.waitingForLock ) && o.query && o.query.query && o.query.query.$where && o.query.count == "jstests_killop" ) {
ids.push( o.opid );
}
}