Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
33ed1a42
Commit
33ed1a42
authored
Nov 01, 2009
by
antirez
Browse files
another fix for append only mode, now read-only operations are not appended
parent
1766c6da
Changes
1
Show whitespace changes
Inline
Side-by-side
redis.c
View file @
33ed1a42
...
@@ -1580,9 +1580,9 @@ static int processCommand(redisClient *c) {
...
@@ -1580,9 +1580,9 @@ static int processCommand(redisClient *c) {
/* Exec the command */
/* Exec the command */
dirty = server.dirty;
dirty = server.dirty;
cmd->proc(c);
cmd->proc(c);
if (server.appendonly
!= 0
)
if (server.appendonly
&& server.dirty-dirty
)
feedAppendOnlyFile(cmd,c->db->id,c->argv,c->argc);
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);
replicationFeedSlaves(server.slaves,cmd,c->db->id,c->argv,c->argc);
if (listLength(server.monitors))
if (listLength(server.monitors))
replicationFeedSlaves(server.monitors,cmd,c->db->id,c->argv,c->argc);
replicationFeedSlaves(server.monitors,cmd,c->db->id,c->argv,c->argc);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment