From: antirez Date: Mon, 12 Nov 2012 14:04:54 +0000 (+0100) Subject: MIGRATE: fix default timeout to 1000 milliseconds. X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/d85a09dfc6a55089483fb67ccc454f0bc0b1b0f6?hp=26a48504cb08bc8d7682748414d82a48de1f0078 MIGRATE: fix default timeout to 1000 milliseconds. When a timeout <= 0 is provided we set a default timeout of 1 second. It was set to 1 millisecond for an error resulting from a recent change. --- diff --git a/src/migrate.c b/src/migrate.c index be1ea920..1dc9a753 100644 --- a/src/migrate.c +++ b/src/migrate.c @@ -139,7 +139,7 @@ void migrateCommand(redisClient *c) { return; if (getLongFromObjectOrReply(c,c->argv[4],&dbid,NULL) != REDIS_OK) return; - if (timeout <= 0) timeout = 1; + if (timeout <= 0) timeout = 1000; /* Check if the key is here. If not we reply with success as there is * nothing to migrate (for instance the key expired in the meantime), but