sub-command support for ACL CAT and COMMAND LIST. redisCommand always stores fullname#10127
sub-command support for ACL CAT and COMMAND LIST. redisCommand always stores fullname#10127oranagra merged 29 commits intoredis:unstablefrom
Conversation
|
@redis/core-team listing sub-commands in ACL CAT and COMMAND LIST. |
|
@enjoy-binbin i'm done reviewing the lat batch of changes |
|
@guybe7 thank you very much for the review.. sorry for not doing it perfectly, i will take a deep look tomorrow |
|
trigger a full CI in this branch: https://github.com/enjoy-binbin/redis/actions/runs/1729975896 |
|
@enjoy-binbin gave it another top to bottom review, and last round of comments. |
Co-authored-by: Oran Agra <[email protected]> Co-authored-by: guybe7 <[email protected]>
|
@oranagra thanks for the review / patience. I checked all the comments. |
|
a little unrelated cleanup is ok.. and in this case much of it is NOT unrelated. we could even consider not to rename |
yossigo
left a comment
There was a problem hiding this comment.
LGTM (based on top comment, did not CR).
…ror responses (#10612) 1. Disk error and slave count checks didn't flag the transactions or counted correctly in command stats (regression from #10372 , 7.0 RC3) 2. RM_Call will reply the same way Redis does, in case of non-exisitng command or arity error 3. RM_WrongArtiy will consider the full command name 4. Use lowercase 'u' in "unknonw subcommand" (to align with "unknown command") Followup work of #10127
…ror responses (redis#10612) 1. Disk error and slave count checks didn't flag the transactions or counted correctly in command stats (regression from redis#10372 , 7.0 RC3) 2. RM_Call will reply the same way Redis does, in case of non-exisitng command or arity error 3. RM_WrongArtiy will consider the full command name 4. Use lowercase 'u' in "unknonw subcommand" (to align with "unknown command") Followup work of redis#10127
Summary of changes:
redisCommand->nametoredisCommand->declared_name, it is a const char * for native commands and SDS for module commands.redisCommand->fullname(sds).ACL CATCOMMAND LISTmoduleUnregisterCommandsnow will also free the module subcommands.Other changes:
addReplyErrorArityandaddReplyErrorExpireTimegetFullCommandNamefunction that now is useless.fullnamesince now it is SDS.populateSingleCommandfunction from server.h that is useless.see the history in #9504, fixes #10124