in activeio-core/src/main/java/org/apache/activeio/journal/active/LogFileManager.java [486:505]
void activateNextLogFile() throws IOException {
// The current append logFile becomes readonly
if (appendNode != null) {
appendNode.setReadOnly(true);
}
LogFileNode next = firstInactiveNode;
synchronized (this) {
firstInactiveNode = firstInactiveNode.getNextInactive();
next.activate(getNextLogFileId());
if (firstActiveNode == null) {
firstActiveNode = next;
}
}
activeLogFileCount.incrementAndGet();
appendNode = next;
storeState();
}