Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 05705bc8bb8685827609813fe48a928260c6a21b 1 parent c8852eb
@antirez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/cluster.c
View
2  src/cluster.c
@@ -1765,7 +1765,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
Please sign in to comment.
Something went wrong with that request. Please try again.