mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 09:11:20 +00:00
Fix INFO commandstats reporting when argv is rewritten.
We want to report the original command in the stats, for example GEOADD, even when what is actually executed is the ZADD implementation.
This commit is contained in:
@ -2270,8 +2270,8 @@ void call(client *c, int flags) {
|
||||
slowlogPushEntryIfNeeded(c->argv,c->argc,duration);
|
||||
}
|
||||
if (flags & CMD_CALL_STATS) {
|
||||
c->cmd->microseconds += duration;
|
||||
c->cmd->calls++;
|
||||
c->lastcmd->microseconds += duration;
|
||||
c->lastcmd->calls++;
|
||||
}
|
||||
|
||||
/* Propagate the command into the AOF and replication link */
|
||||
|
Reference in New Issue
Block a user