MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RM_ReplicateVerbatim

Function RM_ReplicateVerbatim

src/module.cpp:1923–1929  ·  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

1921 *
1922 * The function always returns REDISMODULE_OK. */
1923int RM_ReplicateVerbatim(RedisModuleCtx *ctx) {
1924 alsoPropagate(ctx->client->cmd,ctx->client->db->id,
1925 ctx->client->argv,ctx->client->argc,
1926 PROPAGATE_AOF|PROPAGATE_REPL);
1927 g_pserver->dirty++;
1928 return REDISMODULE_OK;
1929}
1930
1931/* --------------------------------------------------------------------------
1932 * ## DB and Key APIs -- Generic API

Callers

nothing calls this directly

Calls 1

alsoPropagateFunction · 0.85

Tested by

no test coverage detected