summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-01-25 15:45:38 -0500
committerEliot Horowitz <eliot@10gen.com>2012-01-25 15:45:38 -0500
commit0465af113532684c4c0e9d72bb7d21454495bdba (patch)
tree68fe2594259ebe7cfec082507355198e17bb5599 /jstests
parent679c8eb7d97527f33b8bfc56d15402804abad1f8 (diff)
downloadmongo-0465af113532684c4c0e9d72bb7d21454495bdba.tar.gz
better debugging for killop
Diffstat (limited to 'jstests')
-rw-r--r--jstests/killop.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/killop.js b/jstests/killop.js
index 4f72ab25d89..d67f293c6bf 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( {} );
@@ -27,7 +27,7 @@ s1 = startParallelShell( "db.jstests_killop.count( { $where: function() { while(
s2 = startParallelShell( "db.jstests_killop.count( { $where: function() { while( 1 ) { ; } } } )" );
o = [];
-assert.soon( function() { o = ops(); printjson( o ); return o.length == 2; } );
+assert.soon( function() { o = ops(); return o.length == 2; } );
debug( o );
db.killOp( o[ 0 ] );
db.killOp( o[ 1 ] );