MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / processPendingCommandsAndResetClient

Function processPendingCommandsAndResetClient

src/networking.cpp:2539–2547  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

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. */
2539int 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
2549bool FClientReady(client *c) {
2550 /* Immediately abort if the client is in the middle of something. */

Callers 1

processUnblockedClientsFunction · 0.85

Calls 1

Tested by

no test coverage detected