From: antirez Date: Thu, 19 Apr 2012 21:35:15 +0000 (+0200) Subject: SHUTDOWN NOSAVE now can stop a non returning script. Issue #466. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/e3923a3508af010d80736c401cc8083277ea4e53?ds=sidebyside SHUTDOWN NOSAVE now can stop a non returning script. Issue #466. --- diff --git a/src/redis.c b/src/redis.c index 2b1007b5..cb4883cc 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1599,7 +1599,7 @@ int processCommand(redisClient *c) { /* Lua script too slow? Only allow SHUTDOWN NOSAVE and SCRIPT KILL. */ if (server.lua_timedout && - !(c->cmd->proc != shutdownCommand && + !(c->cmd->proc == shutdownCommand && c->argc == 2 && tolower(((char*)c->argv[1]->ptr)[0]) == 'n') && !(c->cmd->proc == scriptCommand &&