From e3923a3508af010d80736c401cc8083277ea4e53 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 19 Apr 2012 23:35:15 +0200 Subject: [PATCH] SHUTDOWN NOSAVE now can stop a non returning script. Issue #466. --- src/redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 && -- 2.47.2