mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
processUnblockedClients: don't process clients that blocekd again
This commit is contained in:
parent
f7bd816bbb
commit
2bc1527a95
@ -117,12 +117,17 @@ void processUnblockedClients(void) {
|
||||
listDelNode(server.unblocked_clients,ln);
|
||||
c->flags &= ~REDIS_UNBLOCKED;
|
||||
|
||||
/* Process remaining data in the input buffer. */
|
||||
/* Process remaining data in the input buffer, unless the client
|
||||
* is blocked again. Actually processInputBuffer() checks that the
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Unblock a client calling the right function depending on the kind
|
||||
* of operation the client is blocking for. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user