From 4f138e43ad7e543b916ede6a692468beb3629c6d Mon Sep 17 00:00:00 2001 From: Johan Walles Date: Fri, 5 Feb 2021 15:13:19 +0100 Subject: [PATCH] Update src/main/java/redis/clients/jedis/JedisClusterCommand.java Co-authored-by: Yang Bodong --- src/main/java/redis/clients/jedis/JedisClusterCommand.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/redis/clients/jedis/JedisClusterCommand.java b/src/main/java/redis/clients/jedis/JedisClusterCommand.java index e7f51bbe82..ca31caeba1 100644 --- a/src/main/java/redis/clients/jedis/JedisClusterCommand.java +++ b/src/main/java/redis/clients/jedis/JedisClusterCommand.java @@ -130,8 +130,6 @@ private Supplier handleRedirection(Jedis connection, final JedisRedirecti this.connectionHandler.renewSlotCache(connection); } - // release current connection before iteration - releaseConnection(connection); return () -> { Jedis redirectedConnection = connectionHandler.getConnectionFromNode(jre.getTargetNode());