Пример #1
0
 public ProcedureWALTrailer readTrailer() throws IOException {
   try {
     return ProcedureWALFormat.readTrailer(stream, startPos, logStatus.getLen());
   } finally {
     stream.seek(startPos);
   }
 }
Пример #2
0
  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);
    }
  }