• Ozan Tezcan's avatar
    Ignore RM_Call deny-oom flag if maxmemory is zero (#11319) · a3903221
    Ozan Tezcan authored
    If a command gets an OOM response and then if we set maxmemory to zero
    to disable the limit, server.pre_command_oom_state never gets updated
    and it stays true. As RM_Call() calls with "respect deny-oom" flag checks
    server.pre_command_oom_state, all calls will fail with OOM.
    
    Added server.maxmemory check in RM_Call() to process deny-oom flag
    only if maxmemory is configured.
    
    (cherry picked from commit 18920813)
    a3903221
misc.tcl 11.6 KB