throw EnvironmentFailureException.unexpectedState
(debugTag + " txn id should be negative: " + entry);
}
if (entry instanceof LNLogEntry) {
NodeLogEntry n = (NodeLogEntry) entry;
if (n.getNodeId() >= 0) {
throw EnvironmentFailureException.unexpectedState
(debugTag + " node id should be negative: " + entry);
}
if (LogEntryType.LOG_NAMELN_TRANSACTIONAL.equalsType
(getEntryType())) {
NameLN nameLN = (NameLN) ((LNLogEntry) entry).getLN();
if (nameLN.getId().getId() >= 0) {
throw EnvironmentFailureException.unexpectedState
(debugTag + " db id should be negative: " + entry);
}
} else {
if (n.getDbId().getId() >= 0) {
throw EnvironmentFailureException.unexpectedState
(debugTag + " db id should be negative: " + entry);
}
}
}