Fixed - Pooled connection closed after MOVED redirection #1778

pull/1792/head
Nikita Koksharov 6 years ago
parent ce5a17fd29
commit cbafc09d2b

@ -452,7 +452,7 @@ abstract class ConnectionPool<T extends RedisConnection> {
}
public void returnConnection(ClientConnectionsEntry entry, T connection) {
if (entry.isFreezed() && !entry.isMasterForRead()) {
if (entry.isFreezed() && entry.getFreezeReason() != FreezeReason.SYSTEM) {
connection.closeAsync();
entry.getAllConnections().remove(connection);
} else {

Loading…
Cancel
Save