It is possible to call the function forceCommandPropagation() inside a * Redis command implementation in order to to force the propagation of a * specific command execution into AOF / Replication. */
| 3629 | * Redis command implementation in order to to force the propagation of a |
| 3630 | * specific command execution into AOF / Replication. */ |
| 3631 | void forceCommandPropagation(client *c, int flags) { |
| 3632 | serverAssert(c->cmd->flags & (CMD_WRITE | CMD_MAY_REPLICATE)); |
| 3633 | if (flags & PROPAGATE_REPL) c->flags |= CLIENT_FORCE_REPL; |
| 3634 | if (flags & PROPAGATE_AOF) c->flags |= CLIENT_FORCE_AOF; |
| 3635 | } |
| 3636 | |
| 3637 | /* Avoid that the executed command is propagated at all. This way we |
| 3638 | * are free to just propagate what we want using the alsoPropagate() |
no outgoing calls
no test coverage detected