예제 #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);
    }
  }