public ProcedureWALTrailer readTrailer() throws IOException { try { return ProcedureWALFormat.readTrailer(stream, startPos, logStatus.getLen()); } finally { stream.seek(startPos); } }
public void open() throws IOException { if (stream == null) { stream = fs.open(logFile); } if (header == null) { header = ProcedureWALFormat.readHeader(stream); startPos = stream.getPos(); } else { stream.seek(startPos); } }