Fix CONFIG REWRITE of oom-score-adj-values. (#7761)
(cherry picked from commit 750acf3a457053ad9f57a263baa84ec68e0ae145)
This commit is contained in:
parent
643d3e0b79
commit
cf3375bf7c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user