diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-04-24 16:01:33 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-04-24 16:07:56 -0400 |
commit | 9cf89ce4f44f3885e5bea05c31d5a40cd86c4b4c (patch) | |
tree | c575ccb40370cdf10cc4093a1fb959939e257eab /jstests | |
parent | 71d811f204f17c43d93b7f929f6c25ce097c2952 (diff) | |
download | mongo-9cf89ce4f44f3885e5bea05c31d5a40cd86c4b4c.tar.gz |
SERVER-18201 Fix a missed variable declaration
This fails the test, because it is declared to 'use strict'
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/disk/repair5.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/disk/repair5.js b/jstests/disk/repair5.js index 5655e72d0e5..8651697690f 100644 --- a/jstests/disk/repair5.js +++ b/jstests/disk/repair5.js @@ -19,17 +19,18 @@ // Insert a lot of data so repair runs a long time var bulk = dbTest[baseName].initializeUnorderedBulkOp(); var big = new Array( 5000 ).toString(); - for( i = 0; i < 20000; ++i ) { + for(var i = 0; i < 20000; ++i) { bulk.insert( {i:i,b:big} ); } assert.writeOK(bulk.execute()); function killRepair() { while( 1 ) { - p = db.currentOp().inprog; + var p = db.currentOp().inprog; for( var i in p ) { var o = p[ i ]; printjson( o ); + // Find the active 'repairDatabase' op and kill it. if ( o.active && o.query && o.query.repairDatabase ) { db.killOp( o.opid ); |