qjm.finalizeLogSegment(0, numEdits - 1);
// Once producer is shutdown, scan again from last known good position
// until the end of the ledger. This mirrors the Ingest logic (last
// read when being quiesced).
in.refresh(lastPos, maxTxId);
do {
op = in.readOp();
if (op != null) {
long txId = op.getTransactionId();
if (txId > maxTxId) {