mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Merge branch 'unstable' of github.com:/antirez/redis into unstable
This commit is contained in:
commit
b8febe60b4
@ -2619,8 +2619,11 @@ int processCommand(client *c) {
|
|||||||
if (server.current_client == NULL) return C_ERR;
|
if (server.current_client == NULL) return C_ERR;
|
||||||
|
|
||||||
/* It was impossible to free enough memory, and the command the client
|
/* It was impossible to free enough memory, and the command the client
|
||||||
* is trying to execute is denied during OOM conditions? Error. */
|
* is trying to execute is denied during OOM conditions or the client
|
||||||
if ((c->cmd->flags & CMD_DENYOOM) && out_of_memory) {
|
* is in MULTI/EXEC context? Error. */
|
||||||
|
if (out_of_memory &&
|
||||||
|
(c->cmd->flags & CMD_DENYOOM ||
|
||||||
|
(c->flags & CLIENT_MULTI && c->cmd->proc != execCommand))) {
|
||||||
flagTransaction(c);
|
flagTransaction(c);
|
||||||
addReply(c, shared.oomerr);
|
addReply(c, shared.oomerr);
|
||||||
return C_OK;
|
return C_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user