From b3782098ae594a5457a9de74ce5e15f1629d077d Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Tue, 8 Sep 2020 16:00:20 +0300 Subject: [PATCH] Fix CONFIG REWRITE of oom-score-adj-values. (#7761) --- src/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 0e1aa01e9..b10e94566 100644 --- a/src/config.c +++ b/src/config.c @@ -1422,7 +1422,8 @@ void rewriteConfigOOMScoreAdjValuesOption(struct rewriteConfigState *state) { char *option = "oom-score-adj-values"; sds line; - line = sdsempty(); + line = sdsnew(option); + line = sdscatlen(line, " ", 1); for (j = 0; j < CONFIG_OOM_COUNT; j++) { if (server.oom_score_adj_values[j] != configOOMScoreAdjValuesDefaults[j]) force = 1;