From: antirez Date: Wed, 14 Sep 2011 11:08:19 +0000 (+0200) Subject: Don't replicate/AOF SAVE X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/6468a6faad92e087d5054b60b86bf33d718e86ba Don't replicate/AOF SAVE --- diff --git a/src/redis.c b/src/redis.c index 8662191f..94ca17f5 100644 --- a/src/redis.c +++ b/src/redis.c @@ -1025,9 +1025,9 @@ void call(redisClient *c) { slowlogPushEntryIfNeeded(c->argv,c->argc,duration); c->cmd->calls++; - 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))