if (in.markSupported()) { // if we can we validate the checksum first
in.mark(opSize);
in.skip(opSize - 4);
verifyChecksum(in);
in.reset();
<BUG>}
Translog.Operation.Type type = Translog.Operation.Type.fromId(in.readByte());
operation = newOperationFromType(type);
operation.readFrom(in);</BUG>
verifyChecksum(in);

if (in.markSupported()) { // if we can we validate the checksum first
in.mark(opSize);
in.skip(opSize - 4);
verifyChecksum(in);
in.reset();
}
operation = Translog.Operation.readType(in);
verifyChecksum(in);
