From a13ece642134475c1b7df62a40b1576ff1316d4e Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 16 Sep 2014 10:12:50 +0200 Subject: [PATCH] Don't propagate SAVE. This is a general fix (check that dirty delta is positive) but actually should have as the only effect fixing the SAVE propagation to AOF and slaves. --- src/redis.c | 1 + 1 file changed, 1 insertion(+) 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. */