mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
another fix for append only mode, now read-only operations are not appended
This commit is contained in:
parent
1766c6dadc
commit
33ed1a426d
4
redis.c
4
redis.c
@ -1580,9 +1580,9 @@ static int processCommand(redisClient *c) {
|
||||
/* Exec the command */
|
||||
dirty = server.dirty;
|
||||
cmd->proc(c);
|
||||
if (server.appendonly != 0)
|
||||
if (server.appendonly && server.dirty-dirty)
|
||||
feedAppendOnlyFile(cmd,c->db->id,c->argv,c->argc);
|
||||
if (server.dirty-dirty != 0 && listLength(server.slaves))
|
||||
if (server.dirty-dirty && listLength(server.slaves))
|
||||
replicationFeedSlaves(server.slaves,cmd,c->db->id,c->argv,c->argc);
|
||||
if (listLength(server.monitors))
|
||||
replicationFeedSlaves(server.monitors,cmd,c->db->id,c->argv,c->argc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user