@ Deprecated @ Override public BsonDocument execute ( final WriteBinding binding ) { return withConnection ( binding , new CallableWithConnection < BsonDocument > ( ) { @ Override public BsonDocument call ( final Connection connection ) { if ( serverIsAtLeastVersionThreeDotTwo ( connection . getDescription ( ) ) ) { return executeCommand ( binding , "admin" , FSYNC_UNLOCK_COMMAND , connection ) ; } else { return queryUnlock ( connection ) ; } } } ) ; }
Unlocks the MongoDB server allowing write operations to go through .