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-27 18:06:22 +02:00
committed by antirez
parent 55442262e1
commit a309388dff
+1
View File
@@ -5223,6 +5223,7 @@ int clusterRedirectBlockedClientIfNeeded(client *c) {
clusterRedirectClient(c,node,slot,
CLUSTER_REDIR_MOVED);
}
dictReleaseIterator(di);
return 1;
}
}