diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-06-04 11:45:29 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-06-04 11:46:03 -0400 |
commit | aca83097ebcb23bc2397c61cc52a02f09b84b2df (patch) | |
tree | 0c502d5718696093e3e54a5846ffe41deb9201d9 /jstests/fsync2.js | |
parent | 18b5d970338707f2d0e78c2b87610e5f1ee53065 (diff) | |
download | mongo-aca83097ebcb23bc2397c61cc52a02f09b84b2df.tar.gz |
diagnostics for fsync2
Diffstat (limited to 'jstests/fsync2.js')
-rw-r--r-- | jstests/fsync2.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/jstests/fsync2.js b/jstests/fsync2.js index bd9901cc46c..d33bfd3de34 100644 --- a/jstests/fsync2.js +++ b/jstests/fsync2.js @@ -1,4 +1,8 @@ +function debug( msg ) { + print( "fsync2: " + msg ); +} + function doTest() { db.fsync2.drop(); @@ -7,13 +11,18 @@ function doTest() { d = db.getSisterDB( "admin" ); assert.commandWorked( d.runCommand( {fsync:1, lock: 1 } ) ); + + debug( "after lock" ); for ( i=0; i<200; i++) { + debug( "loop: " + i ); assert.eq(1, db.fsync2.count()); - sleep(1); + sleep(100); } + debug( "about to save" ); db.fsync2.save( {x:1} ); + debug( "save done" ); m = new Mongo( db.getMongo().host ); |