Fix CMD_DENYOOM macro name after backporting.

This commit is contained in:
antirez
2015-12-18 09:15:47 +01:00
parent e0b7388de3
commit 0d5815579b

View File

@ -2070,7 +2070,7 @@ int processCommand(redisClient *c) {
/* It was impossible to free enough memory, and the command the client
* is trying to execute is denied during OOM conditions? Error. */
if ((c->cmd->flags & CMD_DENYOOM) && retval == REDIS_ERR) {
if ((c->cmd->flags & REDIS_CMD_DENYOOM) && retval == REDIS_ERR) {
flagTransaction(c);
addReply(c, shared.oomerr);
return REDIS_OK;