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(),
|
offsetContext.getCommitScn(), metrics.getNumberOfActiveTransactions(),
|
||||||
metrics.getSleepTimeInMilliseconds());
|
metrics.getSleepTimeInMilliseconds());
|
||||||
|
|
||||||
if (metrics.getNumberOfActiveTransactions() > 0) {
|
if (metrics.getNumberOfActiveTransactions() > 0 && LOGGER.isDebugEnabled()) {
|
||||||
// This is wrapped in try-with-resources specifically for Infinispan performance
|
// This is wrapped in try-with-resources specifically for Infinispan performance
|
||||||
try (Stream<T> stream = getTransactionCache().values().stream()) {
|
try (Stream<T> stream = getTransactionCache().values().stream()) {
|
||||||
LOGGER.debug("All active transactions: {}",
|
LOGGER.debug("All active transactions: {}",
|
||||||
|
Loading…
Reference in New Issue
Block a user