0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00
mongodb/jstests/fsync2.js
Dwight 755804209e SERVER-519
changed how we unlock - greediness of writers was a problem
2010-01-04 16:37:28 -05:00

16 lines
340 B
JavaScript

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} );
m = new Mongo( db.getMongo().host );
assert( m.getDB("admin").$cmd.sys.unlock.findOne().ok );
// uncomment when fixed SERVER-519
assert.eq( 1, db.fsync2.count() );