mirror of https://github.com/mongodb/mongo
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() );
|