mirror of
https://github.com/fluencelabs/redis
synced 2025-06-17 11:11:20 +00:00
Merge pull request #6401 from valentinogeron/fix-discard-during-oom
DISCARD should not fail during OOM
This commit is contained in:
@ -3412,7 +3412,7 @@ int processCommand(client *c) {
|
||||
* is in MULTI/EXEC context? Error. */
|
||||
if (out_of_memory &&
|
||||
(c->cmd->flags & CMD_DENYOOM ||
|
||||
(c->flags & CLIENT_MULTI && c->cmd->proc != execCommand))) {
|
||||
(c->flags & CLIENT_MULTI && c->cmd->proc != execCommand && c->cmd->proc != discardCommand))) {
|
||||
flagTransaction(c);
|
||||
addReply(c, shared.oomerr);
|
||||
return C_OK;
|
||||
|
Reference in New Issue
Block a user