blob: 6e97ec843045bdfd42e64d99a095e47ff59ef829 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
if (!jsTest.options().auth) { // SERVER-4243
db.fsync2.drop();
db.fsync2.save( {x:1} );
d = db.getSisterDB( "admin" );
assert.commandWorked( d.runCommand( {fsync:1, lock: 1 } ) );
assert.eq(1, db.fsync2.count());
db.fsync2.save( {x:1} );
m = new Mongo( db.getMongo().host );
// Uncomment once SERVER-4243 is fixed
//assert.eq(1, m.getDB(db.getName()).fsync2.count());
assert( m.getDB("admin").$cmd.sys.unlock.findOne().ok );
assert.eq( 2, db.fsync2.count() );
}
|