public void sync(){
  try {
    file.force(true);
  }
 catch (  IOException e) {
    closeFileSilently();
    throw DbException.convertIOException(e,name);
  }
}

public void sync ( ) { try { file . force ( true ) ; } catch ( IOException e ) { closeFileSilently ( ) ; throw DbException . convertIOException ( e , name ) ; } }
call fsync . depending on the operating system and hardware , this may or may not in fact write the changes .
