mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
2a099d49d4
There are some commands that has the wrong key specs. This PR adds a key-spec related check in generate-command-code.py. Check if the index is valid, or if there is an unused index. The check result will look like: ``` [root]# python utils/generate-command-code.py Processing json files... Linking container command to subcommands... Checking all commands... command: RESTORE_ASKING may have unused key_spec command: RENAME may have unused key_spec command: PFDEBUG may have unused key_spec command: WATCH key_specs missing flags command: LCS arg: key2 key_spec_index error command: RENAMENX may have unused key_spec Error: There are errors in the commands check, please check the above logs. ``` The following commands have been fixed according to the check results: - RESTORE ASKING: add missing arguments section (and history section) - RENAME: newkey's key_spec_index should be 1 - PFDEBUG: add missing arguments (and change the arity from -3 to 3) - WATCH: add missing key_specs flags: RO, like EXIST (it allow you to know the key exists, or is modified, but doesn't "leak" the data) - LCS: key2 key_spec_index error, there is only one key-spec - RENAMENX: newkey's key_spec_index should be 1 |
||
---|---|---|
.. | ||
create-cluster | ||
graphs/commits-over-time | ||
hyperloglog | ||
lru | ||
releasetools | ||
srandmember | ||
build-static-symbols.tcl | ||
cluster_fail_time.tcl | ||
corrupt_rdb.c | ||
gen-test-certs.sh | ||
generate-command-code.py | ||
generate-command-help.rb | ||
generate-commands-json.py | ||
generate-module-api-doc.rb | ||
install_server.sh | ||
redis_init_script | ||
redis_init_script.tpl | ||
redis-copy.rb | ||
redis-sha1.rb | ||
speed-regression.tcl | ||
systemd-redis_multiple_servers@.service | ||
systemd-redis_server.service | ||
tracking_collisions.c | ||
whatisdoing.sh |