lastAppendDataFile = wb.getDataFile();
lastAppendRaf = lastAppendDataFile.openRandomAccessFile();
}
// perform batch:
wb.perform(lastAppendRaf, journal.getListener(), journal.getReplicationTarget(), journal.isChecksum(), journal.isPhysicalSync());
// Adjust journal length:
journal.addToTotalLength(wb.getSize());
// Now that the data is on disk, remove the writes from the in-flight cache.