Files
mongo/jstests/fsync2.js

16 lines
340 B
JavaScript
Raw Normal View History

2010-01-04 10:50:36 -08:00
db.fsync2.drop();
d = db.getSisterDB( "admin" );
assert.commandWorked( d.runCommand( {fsync:1, lock: 1 } ) );
// uncomment when fixed SERVER-519
db.fsync2.save( {x:1} );
2010-01-04 10:50:36 -08:00
m = new Mongo( db.getMongo().host );
assert( m.getDB("admin").$cmd.sys.unlock.findOne().ok );
2010-01-04 10:50:36 -08:00
// uncomment when fixed SERVER-519
assert.eq( 1, db.fsync2.count() );