Rename redisCommandGroup to serverCommandGroup (#172)

Part of issue #144

Signed-off-by: 0del <bany.y0599@gmail.com>
This commit is contained in:
0del 2024-04-03 23:29:59 +07:00 committed by GitHub
parent def09488aa
commit 99bdcc0ed0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
* the fantastic
* Redis Command Table! */
/* Must match redisCommandGroup */
/* Must match serverCommandGroup */
const char *COMMAND_GROUP_STR[] = {
"generic",
"string",

View File

@ -2235,7 +2235,7 @@ typedef enum {
COMMAND_GROUP_STREAM,
COMMAND_GROUP_BITMAP,
COMMAND_GROUP_MODULE,
} redisCommandGroup;
} serverCommandGroup;
typedef void redisCommandProc(client *c);
typedef int redisGetKeysProc(struct redisCommand *cmd, robj **argv, int argc, getKeysResult *result);
@ -2343,7 +2343,7 @@ struct redisCommand {
int doc_flags; /* Flags for documentation (see CMD_DOC_*). */
const char *replaced_by; /* In case the command is deprecated, this is the successor command. */
const char *deprecated_since; /* In case the command is deprecated, when did it happen? */
redisCommandGroup group; /* Command group */
serverCommandGroup group; /* Command group */
commandHistory *history; /* History of the command */
int num_history;
const char **tips; /* An array of strings that are meant to be tips for clients/proxies regarding this command */

View File

@ -578,7 +578,7 @@ with open("%s/%s.def" % (srcdir, commands_filename), "w") as f:
* the fantastic
* Redis Command Table! */
/* Must match redisCommandGroup */
/* Must match serverCommandGroup */
const char *COMMAND_GROUP_STR[] = {
"generic",
"string",