private void flushVersion0(DataOutputStream stream) throws IOException {
    stream.writeLong(startTime);
    stream.writeInt(currentIdx);
    stream.writeInt(cycleLogs.size());
    for (CycleLog cycleLog : cycleLogs) {
      stream.write(cycleLog.toBytes());
    }
  }
Flush the CompactionLog following the version 0 format.
Version 0:
   version
   startTime
   index of current cycle's log
   size of cycle log list
   cycleLog1 (see CycleLog#toBytes())
   cycleLog2
   ...
   crc
@param stream The output stream to write bytes to
@throws IOException
ambry-store/src/main/java/com/github/ambry/store/CompactionLog.java