]> git.saurik.com Git - redis.git/commitdiff
MIGRATE timeout should be in milliseconds.
authorantirez <antirez@gmail.com>
Mon, 12 Nov 2012 13:00:59 +0000 (14:00 +0100)
committerantirez <antirez@gmail.com>
Mon, 12 Nov 2012 17:57:55 +0000 (18:57 +0100)
While it is documented that the MIGRATE timeout is in milliseconds, it
was in seconds instead. This commit fixes the problem.

src/migrate.c

index 86dfe165b9ba4d18a6c3fe081ea79bba97d8dece..be1ea9203ca4385e94519d30a716bc9c4faf6629 100644 (file)
@@ -157,7 +157,7 @@ void migrateCommand(redisClient *c) {
             server.neterr);
         return;
     }
-    if ((aeWait(fd,AE_WRITABLE,timeout*1000) & AE_WRITABLE) == 0) {
+    if ((aeWait(fd,AE_WRITABLE,timeout) & AE_WRITABLE) == 0) {
         close(fd);
         addReplySds(c,sdsnew("-IOERR error or timeout connecting to the client\r\n"));
         return;