From b7bf29059e2954566af95dd18c8554f68479ed2d Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 14 Sep 2011 13:08:19 +0200 Subject: [PATCH] Don't replicate/AOF SAVE --- src/redis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/redis.c b/src/redis.c index 31b04e99..da894599 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1009,9 +1009,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))