MCPcopy Create free account
hub / github.com/F-Stack/f-stack / forceCommandPropagation

Function forceCommandPropagation

app/redis-6.2.6/src/server.c:3631–3635  ·  view source on GitHub ↗

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. */

Source from the content-addressed store, hash-verified

3629 * Redis command implementation in order to to force the propagation of a
3630 * specific command execution into AOF / Replication. */
3631void 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()

Callers 3

evalGenericCommandFunction · 0.85
scriptCommandFunction · 0.85
publishCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected