Allow scripts to timeout on slaves as well.

See reasoning in #5297.
This commit is contained in:
antirez
2018-08-29 18:14:46 +02:00
parent d05f5c8f64
commit f5b29c6444
2 changed files with 10 additions and 3 deletions

View File

@ -2683,6 +2683,7 @@ int processCommand(client *c) {
/* Lua script too slow? Only allow a limited number of commands. */
if (server.lua_timedout &&
!(c->flags & CLIENT_MASTER) &&
c->cmd->proc != authCommand &&
c->cmd->proc != replconfCommand &&
!(c->cmd->proc == shutdownCommand &&