From f85f36f50d7066bc7b3a845488a90e9ad3f1625d Mon Sep 17 00:00:00 2001 From: Suraj Narkhede Date: Fri, 23 Jun 2017 00:30:21 -0700 Subject: [PATCH] Fix following issues in blocking commands: 1. brpop last key index, thus checking all keys for slots. 2. Memory leak in clusterRedirectBlockedClientIfNeeded. 3. Remove while loop in clusterRedirectBlockedClientIfNeeded. --- src/cluster.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cluster.c b/src/cluster.c index 56af347b..407ddee8 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -5438,6 +5438,7 @@ int clusterRedirectBlockedClientIfNeeded(client *c) { clusterRedirectClient(c,node,slot, CLUSTER_REDIR_MOVED); } + dictReleaseIterator(di); return 1; } }