Beispiel #1
0
    public void increment(FileReader reader, byte currentEntryTypeNum) {
      LogEntryType entryType = LogEntryType.findType(currentEntryTypeNum);

      if (entryType == LogEntryType.LOG_CKPT_START) {
        startCkptLsn = reader.getLastLsn();
      } else if (entryType.isUserLNType()) {
        if (entryType.isTransactional()) {
          if (startCkptLsn == DbLsn.NULL_LSN) {
            preStartLNTxnCount++;
          } else {
            postStartLNTxnCount++;
          }
        } else {
          if (startCkptLsn == DbLsn.NULL_LSN) {
            preStartLNCount++;
          } else {
            postStartLNCount++;
          }
        }
      } else if (entryType == LogEntryType.LOG_MAPLN) {
        if (startCkptLsn == DbLsn.NULL_LSN) {
          preStartMapLNCount++;
        } else {
          postStartMapLNCount++;
        }
      } else if (entryType == LogEntryType.LOG_MAPLN_TRANSACTIONAL) {
        if (startCkptLsn == DbLsn.NULL_LSN) {
          preStartMapLNTxnCount++;
        } else {
          postStartMapLNTxnCount++;
        }
      }
    }