提交 ca577d16 编写于 作者: A antirez

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

上级 d54943b7
......@@ -1557,7 +1557,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 &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册