SHUTDOWN NOSAVE now can stop a non returning script. Issue #466.

This commit is contained in:
antirez 2012-04-19 23:35:15 +02:00
parent 1e35ae7486
commit e3923a3508

View File

@ -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 &&