Пример #1
0
 /**
  * Writes & syncs to the Directory dir, taking care to remove the segments file on exception
  *
  * <p>Note: {@link #changed()} should be called prior to this method if changes have been made to
  * this {@link SegmentInfos} instance
  */
 final void commit(Directory dir) throws IOException {
   prepareCommit(dir);
   finishCommit(dir);
 }