This will undo the client protection done by protectClient() */
| 1705 | |
| 1706 | /* This will undo the client protection done by protectClient() */ |
| 1707 | void unprotectClient(client *c) { |
| 1708 | if (c->flags & CLIENT_PROTECTED) { |
| 1709 | c->flags &= ~CLIENT_PROTECTED; |
| 1710 | if (c->conn) { |
| 1711 | connSetReadHandler(c->conn,readQueryFromClient); |
| 1712 | if (clientHasPendingReplies(c)) clientInstallWriteHandler(c); |
| 1713 | } |
| 1714 | } |
| 1715 | } |
| 1716 | |
| 1717 | /* Like processMultibulkBuffer(), but for the inline protocol instead of RESP, |
| 1718 | * this function consumes the client query buffer and creates a command ready |
no test coverage detected