]> git.saurik.com Git - redis.git/commitdiff
Ping the slave using the standard protocol instead of the inline one.
authorantirez <antirez@gmail.com>
Wed, 29 Feb 2012 15:33:54 +0000 (16:33 +0100)
committerantirez <antirez@gmail.com>
Wed, 29 Feb 2012 15:33:54 +0000 (16:33 +0100)
src/replication.c

index dd42fcf17f4e39a3857f81cd482403eafd3ee73b..e8297839500d3c6f245eaef068565e7dea030197 100644 (file)
@@ -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