Commit 45b03dda authored by antirez's avatar antirez
Browse files

unlinkClient(): clear flags according to ops performed.

parent db65f6d3
...@@ -718,6 +718,7 @@ void unlinkClient(client *c) { ...@@ -718,6 +718,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,
...@@ -726,6 +727,7 @@ void unlinkClient(client *c) { ...@@ -726,6 +727,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;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment