From ffbe36fc3ee824407b3818c0a6f861176ce56482 Mon Sep 17 00:00:00 2001 From: guybe7 Date: Thu, 16 Dec 2021 11:54:40 +0100 Subject: Command table: Sorted subcommands (#9951) Sort the sub-commands so that every time we execute the script it generates the exact same results. This will case less merge conflicts if two PRs edit different json files. also: * make the script agnostic to where it is executed (more flexible). * add documentation about commands.c and the json files in the readme. Co-authored-by: Oran Agra --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index f84ba2504..0277ddc62 100644 --- a/README.md +++ b/README.md @@ -362,6 +362,12 @@ Inside server.c you can find code that handles other vital things of the Redis s * `performEvictions()` is called when a new write command should be performed but Redis is out of memory according to the `maxmemory` directive. * The global variable `redisCommandTable` defines all the Redis commands, specifying the name of the command, the function implementing the command, the number of arguments required, and other properties of each command. +commands.c +--- +This file is auto generated by utils/generate-command-code.py, the content is based on the JSON files in the src/commands folder. +These are meant to be the single source of truth about the Redis commands, and all the metadata about them. +These JSON files are not meant to be used directly by anyone directly, instead that metadata can be obtained via the COMMAND command. + networking.c --- -- cgit v1.2.1