public void updateCommitted(Update update, String path) {
if (status != STARTED) {
log.info("not started: update commit ignored.");
return;
}
Record record = (Record) update.getAttribute(ATTRIBUTE_RECORD);
if (record == null) {
String msg = "No record prepared.";
log.warn(msg);
return;
}
try {
long journalUpdateSize = record.update();
long recordRevision = record.getRevision();
setRevision(recordRevision);
log.debug("Stored record '{}' to Journal ({})", recordRevision, journalUpdateSize);
long updateSize = (Long)update.getAttribute(ATTRIBUTE_UPDATE_SIZE);
updateCount.compareAndSet(Integer.MAX_VALUE, 0);
auditLogger.info("[{}] {} {} ({})", new Object[]{updateCount.incrementAndGet(),
record.getRevision(), path, updateSize});
} catch (JournalException e) {
String msg = "Unable to commit log entry.";
log.error(msg, e);
} catch (Throwable e) {