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

Function FAsyncCommand

src/networking.cpp:2622–2631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2620}
2621
2622bool FAsyncCommand(parsed_command &cmd)
2623{
2624 if (serverTL->in_eval || serverTL->in_exec)
2625 return false;
2626 auto parsedcmd = lookupCommand(szFromObj(cmd.argv[0]));
2627 if (parsedcmd == nullptr)
2628 return false;
2629 static const long long expectedFlags = CMD_ASYNC_OK | CMD_READONLY;
2630 return (parsedcmd->flags & expectedFlags) == expectedFlags;
2631}
2632
2633/* This function is called every time, in the client structure 'c', there is
2634 * more query buffer to process, because we read more data from the socket

Callers 1

processInputBufferFunction · 0.85

Calls 2

lookupCommandFunction · 0.85
szFromObjFunction · 0.85

Tested by

no test coverage detected