]> git.saurik.com Git - redis.git/commitdiff
Remove useless trailing space in SYNC command sent to master.
authorantirez <antirez@gmail.com>
Wed, 2 May 2012 19:45:01 +0000 (21:45 +0200)
committerantirez <antirez@gmail.com>
Wed, 2 May 2012 19:47:53 +0000 (21:47 +0200)
src/replication.c

index f03c424faa757fa70225132178df842c0b4dfbbd..5c5bc9abfa2452a7cae0459e3c3f4de765924f64 100644 (file)
@@ -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;