Fix regression causing EXEC to appear in the slow log.

This was recently introduced with PR #6266.
This commit is contained in:
antirez 2019-07-31 19:04:29 +02:00
parent 2a8a63af44
commit 583933e2d6

View File

@ -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);