allow RESET during busy scripts (#8629)

same as DISCARD, this command (RESET) is about client state, not server state
This commit is contained in:
Oran Agra 2021-03-11 07:52:27 +02:00 committed by GitHub
parent 3e2aee4a3c
commit 6297c9cfdb

View File

@ -4144,6 +4144,7 @@ int processCommand(client *c) {
c->cmd->proc != discardCommand &&
c->cmd->proc != watchCommand &&
c->cmd->proc != unwatchCommand &&
c->cmd->proc != resetCommand &&
!(c->cmd->proc == shutdownCommand &&
c->argc == 2 &&
tolower(((char*)c->argv[1]->ptr)[0]) == 'n') &&