code: public boolean truncateInvalidTx(Set<Long> invalidTxIds) {
      // guard against changes to the transaction log while processing
      txMetricsCollector.rate("truncateInvalidTx");
      Stopwatch timer = new Stopwatch().start();
      this.logReadLock.lock();
      try {
        boolean success;
        synchronized (this) {
          ensureAvailable();
          success = doTruncateInvalidTx(invalidTxIds);
        }
        appendToLog(TransactionEdit.createTruncateInvalidTx(invalidTxIds));
        txMetricsCollector.histogram("truncateInvalidTx.latency", (int) timer.elapsedMillis());
        return success;
      } finally {
        this.logReadLock.unlock();
      }
    }
docs: Removes the given transaction ids from the invalid list.
  @param invalidTxIds transaction ids
  @return true if invalid list got changed, false otherwise