From e1f8a71bd862cd1eb1af2b7d312734dca39d85e5 Mon Sep 17 00:00:00 2001 From: christianEQ Date: Thu, 14 Jan 2021 21:59:34 +0000 Subject: [PATCH] added exception to allow pings during loading Former-commit-id: 8a557e9d711c3aadbc566cf96ca2a18f10e8d5a4 --- src/server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server.cpp b/src/server.cpp index 0b0fdc877..add31b969 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -3853,8 +3853,8 @@ int processCommand(client *c, int callFlags) { (c->cmd->proc == execCommand && (c->mstate.cmd_flags & CMD_DENYOOM)); int is_denystale_command = !(c->cmd->flags & CMD_STALE) || (c->cmd->proc == execCommand && (c->mstate.cmd_inv_flags & CMD_STALE)); - int is_denyloading_command = !(c->cmd->flags & CMD_LOADING) || - (c->cmd->proc == execCommand && (c->mstate.cmd_inv_flags & CMD_LOADING)); + int is_denyloading_command = strcmp(c->cmd->name, "ping") && (!(c->cmd->flags & CMD_LOADING) || + (c->cmd->proc == execCommand && (c->mstate.cmd_inv_flags & CMD_LOADING))); /* Check if the user is authenticated. This check is skipped in case * the default user is flagged as "nopass" and is active. */