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 b70d81f60b
commit 4ae1bea323
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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') &&