in activeio-core/src/main/java/org/apache/activeio/journal/active/ControlFile.java [144:162]
public void store() throws IOException {
controlDataVersion++;
file.setLength((controlData.capacity()*2)+32);
file.seek(0);
// Write the first copy of the control data.
file.writeLong(controlDataVersion);
controlData.clear();
channel.write(controlData.getByteBuffer());
file.writeLong(controlDataVersion);
// Write the second copy of the control data.
file.writeLong(controlDataVersion);
controlData.clear();
channel.write(controlData.getByteBuffer());
file.writeLong(controlDataVersion);
channel.force(false);
}