private void writeProductVersionRecord(KnownVersion version, OplogFile olf) throws IOException {
    opState.initialize(version.ordinal());
    writeOpLogBytes(olf, false, true);
    olf.currSize += getOpStateSize();
    dirHolder.incrementTotalOplogSize(getOpStateSize());
  }
A copy constructor used for creating a new oplog based on the previous Oplog. This constructor
is invoked only from the function switchOplog

@param oplogId integer identifying the new oplog
@param dirHolder The directory in which to create new Oplog
@param prevOplog The previous oplog
geode-core/src/main/java/org/apache/geode/internal/cache/Oplog.java