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 ( ) ; } }
Removes the given transaction ids from the invalid list .