s = new ShardingTest( "features3" , 2 , 1 , 1 ); s.adminCommand( { enablesharding : "test" } ); a = s._connections[0].getDB( "test" ); b = s._connections[1].getDB( "test" ); db = s.getDB( "test" ); // ---------- load some data ----- s.adminCommand( { shardcollection : "test.foo" , key : { _id : 1 } } ); N = 10000; s.adminCommand( { split : "test.foo" , middle : { _id : N/2 } } ) s.adminCommand( { moveChunk : "test.foo", find : { _id : 3 } ,to : s.getNonPrimaries( "test" )[0] } ) for ( i=0; i= 0 , "fsync not on admin should fail : " + tojson( x ) ) x = db._adminCommand( "fsync" ) assert( x.ok == 1 && x.numFiles > 0 , "fsync failed : " + tojson( x ) ) x = db._adminCommand( { "fsync" :1, lock:true } ) assert( ! x.ok , "lock should fail: " + tojson( x ) ) s.stop()