Unverified Commit 750acf3a authored by Yossi Gottlieb's avatar Yossi Gottlieb Committed by GitHub
Browse files

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

parent 5496b4a7
...@@ -1422,7 +1422,8 @@ void rewriteConfigOOMScoreAdjValuesOption(struct rewriteConfigState *state) { ...@@ -1422,7 +1422,8 @@ void rewriteConfigOOMScoreAdjValuesOption(struct rewriteConfigState *state) {
char *option = "oom-score-adj-values"; char *option = "oom-score-adj-values";
sds line; sds line;
line = sdsempty(); line = sdsnew(option);
line = sdscatlen(line, " ", 1);
for (j = 0; j < CONFIG_OOM_COUNT; j++) { for (j = 0; j < CONFIG_OOM_COUNT; j++) {
if (server.oom_score_adj_values[j] != configOOMScoreAdjValuesDefaults[j]) if (server.oom_score_adj_values[j] != configOOMScoreAdjValuesDefaults[j])
force = 1; force = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment