• yoav-steinberg's avatar
    Don't write oom score adj to proc unless we're managing it. (#9904) · 1736fa4d
    yoav-steinberg authored
    When disabling redis oom-score-adj managment we restore the
    base value read before enabling oom-score-adj management.
    
    This fixes an issue introduced in #9748 where updating
    `oom-score-adj-values` while `oom-score-adj` was set to `no`
    would write the base oom score adj value read on startup to `/proc`.
    This is a bug since while `oom-score-adj` is disabled we should
    never write to proc and let external processes manage it.
    
    Added appropriate tests.
    1736fa4d
oom-score-adj.tcl 4.29 KB