From 3040c439b845ef19210d9c1f4d050ab28e351ea4 Mon Sep 17 00:00:00 2001 From: Shivshankar Date: Wed, 17 Apr 2024 23:38:39 -0400 Subject: [PATCH] Remove REDIS tag from REDIS_CONFIG_REWRITE_SIGNATURE. (#331) This macros is used to add rewrite string in src/config.c and removing the redis will not effect log or output. Signed-off-by: Shivshankar-Reddy --- src/config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.c b/src/config.c index fcc53af13..ba1774215 100644 --- a/src/config.c +++ b/src/config.c @@ -1018,7 +1018,7 @@ void configGetCommand(client *c) { * CONFIG REWRITE implementation *----------------------------------------------------------------------------*/ -#define REDIS_CONFIG_REWRITE_SIGNATURE "# Generated by CONFIG REWRITE" +#define CONFIG_REWRITE_SIGNATURE "# Generated by CONFIG REWRITE" /* We use the following dictionary type to store where a configuration * option is mentioned in the old configuration file, so it's @@ -1159,7 +1159,7 @@ struct rewriteConfigState *rewriteConfigReadOldFile(char *path) { /* Handle comments and empty lines. */ if (line[0] == '#' || line[0] == '\0') { - if (state->needs_signature && !strcmp(line,REDIS_CONFIG_REWRITE_SIGNATURE)) + if (state->needs_signature && !strcmp(line,CONFIG_REWRITE_SIGNATURE)) state->needs_signature = 0; rewriteConfigAppendLine(state,line); continue; @@ -1264,7 +1264,7 @@ int rewriteConfigRewriteLine(struct rewriteConfigState *state, const char *optio /* Append a new line. */ if (state->needs_signature) { rewriteConfigAppendLine(state, - sdsnew(REDIS_CONFIG_REWRITE_SIGNATURE)); + sdsnew(CONFIG_REWRITE_SIGNATURE)); state->needs_signature = 0; } rewriteConfigAppendLine(state,line);