Skip to content

Commit 7216e4c

Browse files
committed
fix(pooling): move log.info outside synchronized block
Move log.info outside synchronized block in connectAfter method
1 parent 3e37768 commit 7216e4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tarantool-pooling/src/main/java/io/tarantool/pool/PoolEntry.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,8 @@ private void handleConnectError(Object r, Throwable exc) {
566566

567567
/** Reconnect task scheduler. */
568568
private void connectAfter() {
569+
log.info("reconnect {}/{} after {} ms", tag, index, reconnectAfter);
569570
synchronized (this) {
570-
log.info("reconnect {}/{} after {} ms", tag, index, reconnectAfter);
571571
if (reconnectTask != null) {
572572
// existing task is being replaced; the existing increment in `reconnecting` carries over
573573
// to the new task, so no counter change is needed here.

0 commit comments

Comments
 (0)