diff options
author | antirez <antirez@gmail.com> | 2011-09-14 13:08:19 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-09-14 14:54:08 +0200 |
commit | 8ac3c866645ec19a1f21bcf49e6a39950bc6993b (patch) | |
tree | e2f071cf679cdd87c5c18c069449cb4da2eaf702 | |
parent | a8ed66337698a8b168d6a81579a4698bdf9abbd5 (diff) | |
download | redis-8ac3c866645ec19a1f21bcf49e6a39950bc6993b.tar.gz |
Don't replicate/AOF SAVE
-rw-r--r-- | src/redis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/redis.c b/src/redis.c index 1d732e91f..3c8155634 100644 --- a/src/redis.c +++ b/src/redis.c @@ -967,9 +967,9 @@ void call(redisClient *c) { duration = ustime()-start; slowlogPushEntryIfNeeded(c->argv,c->argc,duration); - if (server.appendonly && dirty) + if (server.appendonly && dirty > 0) feedAppendOnlyFile(c->cmd,c->db->id,c->argv,c->argc); - if ((dirty || c->cmd->flags & REDIS_CMD_FORCE_REPLICATION) && + if ((dirty > 0 || c->cmd->flags & REDIS_CMD_FORCE_REPLICATION) && listLength(server.slaves)) replicationFeedSlaves(server.slaves,c->db->id,c->argv,c->argc); if (listLength(server.monitors)) |