mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
SHUTDOWN NOSAVE now can stop a non returning script. Issue #466.
This commit is contained in:
parent
1e35ae7486
commit
e3923a3508
@ -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 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user