mirror of
https://github.com/fluencelabs/redis
synced 2025-06-13 09:11:20 +00:00
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.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user