mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Modify clusterRedirectClient() to handle ZPOP and XREAD.
This commit is contained in:
parent
ba92b517b8
commit
e94b2053c6
@ -5589,7 +5589,11 @@ void clusterRedirectClient(client *c, clusterNode *n, int hashslot, int error_co
|
|||||||
* longer handles, the client is sent a redirection error, and the function
|
* longer handles, the client is sent a redirection error, and the function
|
||||||
* returns 1. Otherwise 0 is returned and no operation is performed. */
|
* returns 1. Otherwise 0 is returned and no operation is performed. */
|
||||||
int clusterRedirectBlockedClientIfNeeded(client *c) {
|
int clusterRedirectBlockedClientIfNeeded(client *c) {
|
||||||
if (c->flags & CLIENT_BLOCKED && c->btype == BLOCKED_LIST) {
|
if (c->flags & CLIENT_BLOCKED &&
|
||||||
|
(c->btype == BLOCKED_LIST ||
|
||||||
|
c->btype == BLOCKED_ZSET ||
|
||||||
|
c->btype == BLOCKED_STREAM))
|
||||||
|
{
|
||||||
dictEntry *de;
|
dictEntry *de;
|
||||||
dictIterator *di;
|
dictIterator *di;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user