mirror of
https://github.com/fluencelabs/redis
synced 2025-05-15 12:01:21 +00:00
SHUTDOWN NOSAVE now can stop a non returning script. Issue #466.
This commit is contained in:
parent
d54943b76d
commit
ca577d162a
@ -1557,7 +1557,7 @@ int processCommand(redisClient *c) {
|
|||||||
|
|
||||||
/* Lua script too slow? Only allow SHUTDOWN NOSAVE and SCRIPT KILL. */
|
/* Lua script too slow? Only allow SHUTDOWN NOSAVE and SCRIPT KILL. */
|
||||||
if (server.lua_timedout &&
|
if (server.lua_timedout &&
|
||||||
!(c->cmd->proc != shutdownCommand &&
|
!(c->cmd->proc == shutdownCommand &&
|
||||||
c->argc == 2 &&
|
c->argc == 2 &&
|
||||||
tolower(((char*)c->argv[1]->ptr)[0]) == 'n') &&
|
tolower(((char*)c->argv[1]->ptr)[0]) == 'n') &&
|
||||||
!(c->cmd->proc == scriptCommand &&
|
!(c->cmd->proc == scriptCommand &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user