summaryrefslogtreecommitdiff
path: root/src/evict.c
diff options
context:
space:
mode:
authorShaya Potter <shaya@redislabs.com>2022-10-27 09:29:43 +0300
committerGitHub <noreply@github.com>2022-10-27 09:29:43 +0300
commit38028dab8d6d2721865aa17e6fbc31a64ee26761 (patch)
tree3a7a6cb5f16b51b065b32f415ad3f2b101ee29b5 /src/evict.c
parentaf4361712278e4ac05603fd4bbea21af02385b9e (diff)
downloadredis-38028dab8d6d2721865aa17e6fbc31a64ee26761.tar.gz
RM_Call - only enforce OOM on scripts if 'M' flag is sent (#11425)
RM_Call is designed to let modules call redis commands disregarding the OOM state (the module is responsible to declare its command flags to redis, or perform the necessary checks). The other (new) alternative is to pass the "M" flag to RM_Call so that redis can OOM reject commands implicitly. However, Currently, RM_Call enforces OOM on scripts (excluding scripts that declared `allow-oom`) in all cases, regardless of the RM_Call "M" flag being present. This PR fixes scripts to be consistent with other commands being executed by RM_Call. It modifies the flow in effect treats scripts as if they if they have the ALLOW_OOM script flag, if the "M" flag is not passed (i.e. no OOM checking is being performed by RM_Call, so no OOM checking should be done on script). Co-authored-by: Oran Agra <oran@redislabs.com>
Diffstat (limited to 'src/evict.c')
0 files changed, 0 insertions, 0 deletions