diff options
author | antirez <antirez@gmail.com> | 2014-09-16 10:12:50 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-09-16 10:12:50 +0200 |
commit | 046a00a03d43a6ba1db197df24be0f888a4cf196 (patch) | |
tree | 7acce46095a817bd197f7a5b5dddc3fa7ece38c1 | |
parent | b82d650afaff867daf9ac2c69d7e631a0f531641 (diff) | |
download | redis-046a00a03d43a6ba1db197df24be0f888a4cf196.tar.gz |
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.
-rw-r--r-- | src/redis.c | 1 |
1 files changed, 1 insertions, 0 deletions
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. */ |