]> git.saurik.com Git - redis.git/commitdiff
Don't replicate/AOF SAVE
authorantirez <antirez@gmail.com>
Wed, 14 Sep 2011 11:08:19 +0000 (13:08 +0200)
committerantirez <antirez@gmail.com>
Wed, 14 Sep 2011 11:09:25 +0000 (13:09 +0200)
src/redis.c

index 8662191fb2eb2fcfcbd7955c656858d8da6eae9e..94ca17f5e8634a5e22a2126d46edec8bbc162387 100644 (file)
@@ -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))