mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
fix multiple unblock for clientsArePaused()
This commit is contained in:
parent
febe102bf6
commit
e3dfd8c811
@ -2126,9 +2126,9 @@ int clientsArePaused(void) {
|
||||
while ((ln = listNext(&li)) != NULL) {
|
||||
c = listNodeValue(ln);
|
||||
|
||||
/* Don't touch slaves and blocked clients. The latter pending
|
||||
* requests be processed when unblocked. */
|
||||
if (c->flags & (CLIENT_SLAVE|CLIENT_BLOCKED)) continue;
|
||||
/* Don't touch slaves and blocked or unblocked clients.
|
||||
* The latter pending requests be processed when unblocked. */
|
||||
if (c->flags & (CLIENT_SLAVE|CLIENT_BLOCKED|CLIENT_UNBLOCKED)) continue;
|
||||
c->flags |= CLIENT_UNBLOCKED;
|
||||
listAddNodeTail(server.unblocked_clients,c);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user