Merge branch 'master' of github.com:redisson/redisson

pull/6249/head
Nikita Koksharov 3 months ago
commit 35a5dec511

@ -91,7 +91,7 @@ public class ConnectionsHolder<T extends RedisConnection> {
private T pollConnection(RedisCommand<?> command) {
T c = freeConnections.poll();
if (c != null) {
if (c != null && changeUsage) {
c.incUsage();
}
return c;
@ -109,7 +109,9 @@ public class ConnectionsHolder<T extends RedisConnection> {
connection.setLastUsageTime(System.nanoTime());
freeConnections.add(connection);
connection.decUsage();
if (changeUsage) {
connection.decUsage();
}
}
public Queue<T> getAllConnections() {

Loading…
Cancel
Save