From: antirez Date: Wed, 2 May 2012 19:45:01 +0000 (+0200) Subject: Remove useless trailing space in SYNC command sent to master. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/9b43b1ef4d646922fc904fda61ff5ab67a2581db Remove useless trailing space in SYNC command sent to master. --- 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;