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
2bc1527a
Commit
2bc1527a
authored
May 05, 2015
by
antirez
Browse files
processUnblockedClients: don't process clients that blocekd again
parent
f7bd816b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/blocked.c
View file @
2bc1527a
...
@@ -117,9 +117,14 @@ void processUnblockedClients(void) {
...
@@ -117,9 +117,14 @@ void processUnblockedClients(void) {
listDelNode
(
server
.
unblocked_clients
,
ln
);
listDelNode
(
server
.
unblocked_clients
,
ln
);
c
->
flags
&=
~
REDIS_UNBLOCKED
;
c
->
flags
&=
~
REDIS_UNBLOCKED
;
/* Process remaining data in the input buffer. */
/* Process remaining data in the input buffer, unless the client
if
(
c
->
querybuf
&&
sdslen
(
c
->
querybuf
)
>
0
)
{
* is blocked again. Actually processInputBuffer() checks that the
processInputBuffer
(
c
);
* client is not blocked before to proceed, but things may change and
* the code is conceptually more correct this way. */
if
(
!
(
c
->
flags
&
DISQUE_BLOCKED
))
{
if
(
c
->
querybuf
&&
sdslen
(
c
->
querybuf
)
>
0
)
{
processInputBuffer
(
c
);
}
}
}
}
}
}
}
...
...
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