summaryrefslogtreecommitdiff
path: root/jstests/fsync2.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-06-04 11:45:29 -0400
committerEliot Horowitz <eliot@10gen.com>2012-06-04 11:46:03 -0400
commitaca83097ebcb23bc2397c61cc52a02f09b84b2df (patch)
tree0c502d5718696093e3e54a5846ffe41deb9201d9 /jstests/fsync2.js
parent18b5d970338707f2d0e78c2b87610e5f1ee53065 (diff)
downloadmongo-aca83097ebcb23bc2397c61cc52a02f09b84b2df.tar.gz
diagnostics for fsync2
Diffstat (limited to 'jstests/fsync2.js')
-rw-r--r--jstests/fsync2.js11
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 );