| 3535 | } |
| 3536 | |
| 3537 | struct redisCommand *lookupCommandByCString(const char *s) { |
| 3538 | struct redisCommand *cmd; |
| 3539 | sds name = sdsnew(s); |
| 3540 | |
| 3541 | cmd = dictFetchValue(server.commands, name); |
| 3542 | sdsfree(name); |
| 3543 | return cmd; |
| 3544 | } |
| 3545 | |
| 3546 | /* Lookup the command in the current table, if not found also check in |
| 3547 | * the original table containing the original command names unaffected by |
no test coverage detected