DBZ-7047 Only iterate active transactions when DEBUG enabled
This commit is contained in:
parent
16d70a1642
commit
de0969899f
@ -237,7 +237,7 @@ public Scn process(Scn startScn, Scn endScn) throws SQLException, InterruptedExc
|
||||
offsetContext.getCommitScn(), metrics.getNumberOfActiveTransactions(),
|
||||
metrics.getSleepTimeInMilliseconds());
|
||||
|
||||
if (metrics.getNumberOfActiveTransactions() > 0) {
|
||||
if (metrics.getNumberOfActiveTransactions() > 0 && LOGGER.isDebugEnabled()) {
|
||||
// This is wrapped in try-with-resources specifically for Infinispan performance
|
||||
try (Stream<T> stream = getTransactionCache().values().stream()) {
|
||||
LOGGER.debug("All active transactions: {}",
|
||||
|
Loading…
Reference in New Issue
Block a user