private void writeDiskStoreRecord(OplogFile olf, OPLOG_TYPE type) throws IOException {
    opState = new OpState();
    opState.initialize(type);
    writeOpLogBytes(olf, false, true);
    olf.currSize += getOpStateSize();
    dirHolder.incrementTotalOplogSize(getOpStateSize());
    clearOpState();

    opState.initialize(getParent().getDiskStoreID());
    writeOpLogBytes(olf, false, true); // fix for bug 41928
    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