summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-11-12 15:04:54 +0100
committerantirez <antirez@gmail.com>2012-11-12 18:58:23 +0100
commitd85a09dfc6a55089483fb67ccc454f0bc0b1b0f6 (patch)
treeff9bf22cd86862de98b8cff18cb2c6b17b7967eb
parent26a48504cb08bc8d7682748414d82a48de1f0078 (diff)
downloadredis-d85a09dfc6a55089483fb67ccc454f0bc0b1b0f6.tar.gz
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.
-rw-r--r--src/migrate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/migrate.c b/src/migrate.c
index be1ea9203..1dc9a753f 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