https://github.com/antirez/redis/commit/ba9154d7e7bf959b002533384319a1e90545447b this seems to have regressed the stats for commands in a transaction Multi set set exec where now stats for exec are getting incremented instead of the sets in the transaction. cmdstat multi calls= 1 cmdstat exec calls = 3

Comment From: deepakverma

I think adding a check for client is running in multi context would fix this

if (flags & CMD_CALL_STATS) { if (c->flags & CLIENT_MULTI){ c->cmd->microseconds += duration; c->cmd->calls++; } else { c->lastcmd->microseconds += duration; c->lastcmd->calls++; } }

Comment From: deepakverma

ping

Comment From: enjoy-binbin

was fix in f03aed3 see: https://github.com/redis/redis/pull/3681#issuecomment-909331990