diff options
author | antirez <antirez@gmail.com> | 2014-09-16 10:12:50 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-09-16 10:41:15 +0200 |
commit | fbd9dc6039a0cae03472839b3e21657915eac48d (patch) | |
tree | 5d6b227a1ca6eb872f286aa3f8c8840b9369b947 | |
parent | 551ffc486c9cc9e561093e184ba71e82fc07d943 (diff) | |
download | redis-fbd9dc6039a0cae03472839b3e21657915eac48d.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 632259552..6fdc2f686 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. */ |