mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
755804209e
changed how we unlock - greediness of writers was a problem
16 lines
340 B
JavaScript
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() );
|