protected void commit()

in src/main/java/com/googlesource/gerrit/plugins/events/fsstore/UpdatableFileValue.java [207:221]


    protected void commit() throws IOException {
      if (!committed) {
        // Safe to perform this block (for performance reasons) even if we
        // have not detected "closed yet", since it can only actually succeed
        // when closed (operations depend on "closed" in paths).
        preserve();

        // rename update/<uuid>/next/closed/value(next) -> value
        committed = myCommit = updatable.update(upaths.value); // Phase 5
        // now there should be: update/<uuid>/next/closed/ and: value (file)
      }
      if (!committed && closed) {
        committed = !Files.exists(upaths.value);
      }
    }