| 4324 | } |
| 4325 | |
| 4326 | struct redisCommand *lookupCommandByCString(const char *s) { |
| 4327 | struct redisCommand *cmd; |
| 4328 | sds name = sdsnew(s); |
| 4329 | |
| 4330 | cmd = (struct redisCommand*)dictFetchValue(g_pserver->commands, name); |
| 4331 | sdsfree(name); |
| 4332 | return cmd; |
| 4333 | } |
| 4334 | |
| 4335 | /* Lookup the command in the current table, if not found also check in |
| 4336 | * the original table containing the original command names unaffected by |
no test coverage detected