From 9b43b1ef4d646922fc904fda61ff5ab67a2581db Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 2 May 2012 21:45:01 +0200 Subject: [PATCH 1/1] Remove useless trailing space in SYNC command sent to master. --- src/replication.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2