Better handling of complexity info in slowlog during multi-exec.

This commit is contained in:
yoav
2012-12-05 15:04:56 +02:00
parent 5c7b48e39a
commit 29910ba0a1
+1
View File
@@ -1513,6 +1513,7 @@ void call(redisClient *c, int flags) {
* per-command statistics that we show in INFO commandstats. */
if (flags & REDIS_CALL_SLOWLOG)
slowlogPushEntryIfNeeded(c->argv,c->argc,duration);
server.slowlog_complexity_params_count = 0; /* Need to zero the count in case we're in a nested call to "call()" */
if (flags & REDIS_CALL_STATS) {
c->cmd->microseconds += duration;
c->cmd->calls++;