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. */
| 4419 | * Redis command implementation in order to to force the propagation of a |
| 4420 | * specific command execution into AOF / Replication. */ |
| 4421 | void forceCommandPropagation(client *c, int flags) { |
| 4422 | serverAssert(c->cmd->flags & (CMD_WRITE | CMD_MAY_REPLICATE)); |
| 4423 | if (flags & PROPAGATE_REPL) c->flags |= CLIENT_FORCE_REPL; |
| 4424 | if (flags & PROPAGATE_AOF) c->flags |= CLIENT_FORCE_AOF; |
| 4425 | } |
| 4426 | |
| 4427 | /* Avoid that the executed command is propagated at all. This way we |
| 4428 | * are free to just propagate what we want using the alsoPropagate() |
no outgoing calls
no test coverage detected