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 committed by antirez
parent 55442262e1
commit a309388dff

View File

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