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
8ac3c866
Commit
8ac3c866
authored
Sep 14, 2011
by
antirez
Browse files
Don't replicate/AOF SAVE
parent
a8ed6633
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis.c
View file @
8ac3c866
...
@@ -967,9 +967,9 @@ void call(redisClient *c) {
...
@@ -967,9 +967,9 @@ void call(redisClient *c) {
duration = ustime()-start;
duration = ustime()-start;
slowlogPushEntryIfNeeded(c->argv,c->argc,duration);
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);
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))
listLength(server.slaves))
replicationFeedSlaves(server.slaves,c->db->id,c->argv,c->argc);
replicationFeedSlaves(server.slaves,c->db->id,c->argv,c->argc);
if (listLength(server.monitors))
if (listLength(server.monitors))
...
...
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