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
2e1cd82d
Commit
2e1cd82d
authored
Nov 06, 2017
by
zhaozhao.zz
Committed by
antirez
Sep 04, 2018
Browse files
fix multiple unblock for clientsArePaused()
parent
17233080
Changes
1
Show whitespace changes
Inline
Side-by-side
src/networking.c
View file @
2e1cd82d
...
@@ -2134,9 +2134,9 @@ int clientsArePaused(void) {
...
@@ -2134,9 +2134,9 @@ int clientsArePaused(void) {
while
((
ln
=
listNext
(
&
li
))
!=
NULL
)
{
while
((
ln
=
listNext
(
&
li
))
!=
NULL
)
{
c
=
listNodeValue
(
ln
);
c
=
listNodeValue
(
ln
);
/* Don't touch slaves and blocked
clients. The latter pending
/* Don't touch slaves and blocked
or unblocked clients.
* requests be processed when unblocked. */
*
The latter pending
requests be processed when unblocked. */
if
(
c
->
flags
&
(
CLIENT_SLAVE
|
CLIENT_BLOCKED
))
continue
;
if
(
c
->
flags
&
(
CLIENT_SLAVE
|
CLIENT_BLOCKED
|
CLIENT_UNBLOCKED
))
continue
;
c
->
flags
|=
CLIENT_UNBLOCKED
;
c
->
flags
|=
CLIENT_UNBLOCKED
;
listAddNodeTail
(
server
.
unblocked_clients
,
c
);
listAddNodeTail
(
server
.
unblocked_clients
,
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