From 583933e2d6b4c2721554ab77c33a9c0bc7672fa6 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 31 Jul 2019 19:04:29 +0200 Subject: [PATCH] Fix regression causing EXEC to appear in the slow log. This was recently introduced with PR #6266. --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index 9de60431..5b3b434d 100644 --- a/src/server.c +++ b/src/server.c @@ -3200,7 +3200,7 @@ void call(client *c, int flags) { /* Log the command into the Slow log if needed, and populate the * per-command statistics that we show in INFO commandstats. */ - if (flags & CMD_CALL_SLOWLOG && !(c->flags & CMD_SKIP_SLOWLOG)) { + if (flags & CMD_CALL_SLOWLOG && !(c->cmd->flags & CMD_SKIP_SLOWLOG)) { char *latency_event = (c->cmd->flags & CMD_FAST) ? "fast-command" : "command"; latencyAddSampleIfNeeded(latency_event,duration/1000);