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

Function RM_ReplicateVerbatim

app/redis-6.2.6/src/module.c:1853–1859  ·  view source on GitHub ↗

This function will replicate the command exactly as it was invoked * by the client. Note that this function will not wrap the command into * a MULTI/EXEC stanza, so it should not be mixed with other replication * commands. * * Basically this form of replication is useful when you want to propagate * the command to the slaves and AOF file exactly as it was called, since * the command can jus

Source from the content-addressed store, hash-verified

1851 *
1852 * The function always returns REDISMODULE_OK. */
1853int RM_ReplicateVerbatim(RedisModuleCtx *ctx) {
1854 alsoPropagate(ctx->client->cmd,ctx->client->db->id,
1855 ctx->client->argv,ctx->client->argc,
1856 PROPAGATE_AOF|PROPAGATE_REPL);
1857 server.dirty++;
1858 return REDISMODULE_OK;
1859}
1860
1861/* --------------------------------------------------------------------------
1862 * ## DB and Key APIs -- Generic API

Callers

nothing calls this directly

Calls 1

alsoPropagateFunction · 0.85

Tested by

no test coverage detected