mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
unlinkClient(): clear flags according to ops performed.
This commit is contained in:
parent
e0f22df995
commit
69897f5f30
@ -694,6 +694,7 @@ void unlinkClient(client *c) {
|
|||||||
ln = listSearchKey(server.clients_pending_write,c);
|
ln = listSearchKey(server.clients_pending_write,c);
|
||||||
serverAssert(ln != NULL);
|
serverAssert(ln != NULL);
|
||||||
listDelNode(server.clients_pending_write,ln);
|
listDelNode(server.clients_pending_write,ln);
|
||||||
|
c->flags &= ~CLIENT_PENDING_WRITE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* When client was just unblocked because of a blocking operation,
|
/* When client was just unblocked because of a blocking operation,
|
||||||
@ -702,6 +703,7 @@ void unlinkClient(client *c) {
|
|||||||
ln = listSearchKey(server.unblocked_clients,c);
|
ln = listSearchKey(server.unblocked_clients,c);
|
||||||
serverAssert(ln != NULL);
|
serverAssert(ln != NULL);
|
||||||
listDelNode(server.unblocked_clients,ln);
|
listDelNode(server.unblocked_clients,ln);
|
||||||
|
c->flags &= ~CLIENT_UNBLOCKED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user