From d85a09dfc6a55089483fb67ccc454f0bc0b1b0f6 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 12 Nov 2012 15:04:54 +0100 Subject: [PATCH] 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. --- src/migrate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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