diff options
Diffstat (limited to 'src/debug.c')
-rw-r--r-- | src/debug.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c index 4f0e37777..081cb862f 100644 --- a/src/debug.c +++ b/src/debug.c @@ -416,6 +416,8 @@ void debugCommand(client *c) { " Like HTSTATS but for the hash table stored at <key>'s value.", "LOADAOF", " Flush the AOF buffers on disk and reload the AOF in memory.", +"REPLICATE <string>", +" Replicates the provided string to replicas, allowing data divergence.", #ifdef USE_JEMALLOC "MALLCTL <key> [<val>]", " Get or set a malloc tuning integer.", @@ -849,6 +851,10 @@ NULL { server.aof_flush_sleep = atoi(c->argv[2]->ptr); addReply(c,shared.ok); + } else if (!strcasecmp(c->argv[1]->ptr,"replicate") && c->argc >= 3) { + replicationFeedSlaves(server.slaves, server.slaveseldb, + c->argv + 2, c->argc - 2); + addReply(c,shared.ok); } else if (!strcasecmp(c->argv[1]->ptr,"error") && c->argc == 3) { sds errstr = sdsnewlen("-",1); |