mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 09:17:20 +00:00
Fix CONFIG REWRITE of oom-score-adj-values. (#7761)
This commit is contained in:
parent
5496b4a7cd
commit
750acf3a45
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user