mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05: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…
Reference in New Issue
Block a user