diff --git a/src/redis.c b/src/redis.c index 4fd2b4d9e..a7e1937a5 100644 --- a/src/redis.c +++ b/src/redis.c @@ -2006,6 +2006,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. */