Skip to content

Commit

Permalink
remove reid tag from REDIS_CONFIG_REWRITE_SIGNATURE
Browse files Browse the repository at this point in the history
Signed-off-by: Shivshankar-Reddy <[email protected]>
  • Loading branch information
Shivshankar-Reddy committed Apr 17, 2024
1 parent 96d14fe commit b62d728
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b62d728

Please sign in to comment.