Fix CONFIG REWRITE of oom-score-adj-values. (#7761)

This commit is contained in:
Yossi Gottlieb 2020-09-08 16:00:20 +03:00 committed by GitHub
parent 1701f23b1f
commit b3782098ae

View File

@ -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;