From 99bdcc0ed0df95843de02422c98b76e2b72c6e98 Mon Sep 17 00:00:00 2001 From: 0del <53461381+0del@users.noreply.github.com> Date: Wed, 3 Apr 2024 23:29:59 +0700 Subject: [PATCH] Rename redisCommandGroup to serverCommandGroup (#172) Part of issue #144 Signed-off-by: 0del --- src/commands.def | 2 +- src/server.h | 4 ++-- utils/generate-command-code.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands.def b/src/commands.def index 2d68e36d7..fd94d22eb 100644 --- a/src/commands.def +++ b/src/commands.def @@ -5,7 +5,7 @@ * the fantastic * Redis Command Table! */ -/* Must match redisCommandGroup */ +/* Must match serverCommandGroup */ const char *COMMAND_GROUP_STR[] = { "generic", "string", diff --git a/src/server.h b/src/server.h index f3613f877..6e99d2903 100644 --- a/src/server.h +++ b/src/server.h @@ -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 */ diff --git a/utils/generate-command-code.py b/utils/generate-command-code.py index 2d7cc5b0d..236bf40cf 100755 --- a/utils/generate-command-code.py +++ b/utils/generate-command-code.py @@ -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",