| 2620 | } |
| 2621 | |
| 2622 | bool 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 |
no test coverage detected