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.
This commit is contained in:
Suraj Narkhede 2017-06-23 00:30:21 -07:00
parent d303bca587
commit f85f36f50d

View File

@ -5438,6 +5438,7 @@ int clusterRedirectBlockedClientIfNeeded(client *c) {
clusterRedirectClient(c,node,slot, clusterRedirectClient(c,node,slot,
CLUSTER_REDIR_MOVED); CLUSTER_REDIR_MOVED);
} }
dictReleaseIterator(di);
return 1; return 1;
} }
} }