diff --git a/src/redis.c b/src/redis.c index 63225955248cbccd319f2f3c40968ce07a80bd39..6fdc2f686ee1b0b4e7782b327445ae84465db588 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1914,6 +1914,7 @@ void call(redisClient *c, int flags) { c->cmd->proc(c); duration = ustime()-start; dirty = server.dirty-dirty; + if (dirty < 0) dirty = 0; /* When EVAL is called loading the AOF we don't want commands called * from Lua to go into the slowlog or to populate statistics. */