Logging.logMessage(Logging.LEVEL_DEBUG, this, "Replicate requested: %s",
lsn.toString());
LSN lastAsync = lastAsyncInserted.get();
LSN actual = stage.getBabuDB().getState();
actual = (lastAsync == null || actual.compareTo(lastAsync) >= 0) ? actual : lastAsync;
LSN expected = new LSN(actual.getViewId(), actual.getSequenceNo() + 1L);
// check the LSN of the logEntry to write
if (lsn.compareTo(actual) <= 0) {
// entry was already inserted