mirror of
https://github.com/fluencelabs/redis
synced 2025-05-29 18:21:20 +00:00
MIGRATE timeout should be in milliseconds.
While it is documented that the MIGRATE timeout is in milliseconds, it was in seconds instead. This commit fixes the problem.
This commit is contained in:
parent
ae3aeca828
commit
26a48504cb
@ -157,7 +157,7 @@ void migrateCommand(redisClient *c) {
|
|||||||
server.neterr);
|
server.neterr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((aeWait(fd,AE_WRITABLE,timeout*1000) & AE_WRITABLE) == 0) {
|
if ((aeWait(fd,AE_WRITABLE,timeout) & AE_WRITABLE) == 0) {
|
||||||
close(fd);
|
close(fd);
|
||||||
addReplySds(c,sdsnew("-IOERR error or timeout connecting to the client\r\n"));
|
addReplySds(c,sdsnew("-IOERR error or timeout connecting to the client\r\n"));
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user