X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/ebdfad69dce1b3a1a48960328e5f6c3ed8fafa41..7b845b62285230d9015f80a6c2ea7ecb0b25df6e:/src/replication.c diff --git a/src/replication.c b/src/replication.c index dd42fcf1..e8297839 100644 --- a/src/replication.c +++ b/src/replication.c @@ -596,7 +596,7 @@ void replicationCron(void) { if (slave->replstate == REDIS_REPL_SEND_BULK) continue; if (slave->replstate == REDIS_REPL_ONLINE) { /* If the slave is online send a normal ping */ - addReplySds(slave,sdsnew("PING\r\n")); + addReplySds(slave,sdsnew("*1\r\n$4\r\nPING\r\n")); } else { /* Otherwise we are in the pre-synchronization stage. * Just a newline will do the work of refreshing the