Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
cf3375bf
Commit
cf3375bf
authored
Sep 08, 2020
by
Yossi Gottlieb
Committed by
Oran Agra
Sep 10, 2020
Browse files
Fix CONFIG REWRITE of oom-score-adj-values. (#7761)
(cherry picked from commit
750acf3a
)
parent
643d3e0b
Changes
1
Show whitespace changes
Inline
Side-by-side
src/config.c
View file @
cf3375bf
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment