X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/8111a803cbbcb9ec6f494baef0fdd5e0664fb33e..4934f93dfb30c93a1636e3227584e791cd062bfb:/src/replication.c diff --git a/src/replication.c b/src/replication.c index f03c424f..5c5bc9ab 100644 --- a/src/replication.c +++ b/src/replication.c @@ -423,7 +423,7 @@ void syncWithMaster(aeEventLoop *el, int fd, void *privdata, int mask) { } /* Issue the SYNC command */ - if (syncWrite(fd,"SYNC \r\n",7,server.repl_syncio_timeout*1000) == -1) { + if (syncWrite(fd,"SYNC\r\n",6,server.repl_syncio_timeout*1000) == -1) { redisLog(REDIS_WARNING,"I/O error writing to MASTER: %s", strerror(errno)); goto error;