Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
e94b2053
Commit
e94b2053
authored
Jun 19, 2018
by
antirez
Browse files
Modify clusterRedirectClient() to handle ZPOP and XREAD.
parent
ba92b517
Changes
1
Show whitespace changes
Inline
Side-by-side
src/cluster.c
View file @
e94b2053
...
@@ -5589,7 +5589,11 @@ void clusterRedirectClient(client *c, clusterNode *n, int hashslot, int error_co
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment