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
750acf3a
Unverified
Commit
750acf3a
authored
Sep 08, 2020
by
Yossi Gottlieb
Committed by
GitHub
Sep 08, 2020
Browse files
Fix CONFIG REWRITE of oom-score-adj-values. (#7761)
parent
5496b4a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
750acf3a
...
@@ -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