This function will execute any fully parsed commands pending on * the client. Returns C_ERR if the client is no longer valid after executing * the command, and C_OK for all other cases. */
| 2537 | * the client. Returns C_ERR if the client is no longer valid after executing |
| 2538 | * the command, and C_OK for all other cases. */ |
| 2539 | int processPendingCommandsAndResetClient(client *c, int flags) { |
| 2540 | if (c->flags & CLIENT_PENDING_COMMAND) { |
| 2541 | c->flags &= ~CLIENT_PENDING_COMMAND; |
| 2542 | if (processCommandAndResetClient(c, flags) == C_ERR) { |
| 2543 | return C_ERR; |
| 2544 | } |
| 2545 | } |
| 2546 | return C_OK; |
| 2547 | } |
| 2548 | |
| 2549 | bool FClientReady(client *c) { |
| 2550 | /* Immediately abort if the client is in the middle of something. */ |
no test coverage detected