summaryrefslogtreecommitdiff
path: root/src/server.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-10-30 09:41:04 +0100
committerantirez <antirez@gmail.com>2015-10-30 12:06:08 +0100
commit2dabf82d5f9f9eb63efb32f7b172a54f000f607f (patch)
tree39394e08af66d132b14a0896971d76fd41b0ce33 /src/server.c
parent514a23472262de499005a31b1af3cca08a1c84ba (diff)
downloadredis-2dabf82d5f9f9eb63efb32f7b172a54f000f607f.tar.gz
Fix call() FORCE_REPL/AOF flags setting.
This commit also inverts two stanzas of the code just becuase they are more logical like that, not because currently it makes any difference.
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.c b/src/server.c
index 09c72ce7e..9dcd55e72 100644
--- a/src/server.c
+++ b/src/server.c
@@ -2235,8 +2235,8 @@ void call(client *c, int flags) {
/* If the command forced AOF / replication of the command, set
* the flags regardless of the command effects on the data set. */
- if (c->flags & CLIENT_FORCE_REPL) flags |= PROPAGATE_REPL;
- if (c->flags & CLIENT_FORCE_AOF) flags |= PROPAGATE_AOF;
+ if (c->flags & CLIENT_FORCE_REPL) propagate_flags |= PROPAGATE_REPL;
+ if (c->flags & CLIENT_FORCE_AOF) propagate_flags |= PROPAGATE_AOF;
/* However prevent AOF / replication propagation if the command
* implementatino called preventCommandPropagation() or similar,