]> git.saurik.com Git - redis.git/commitdiff
MIGRATE: fix default timeout to 1000 milliseconds.
authorantirez <antirez@gmail.com>
Mon, 12 Nov 2012 14:04:54 +0000 (15:04 +0100)
committerantirez <antirez@gmail.com>
Mon, 12 Nov 2012 17:54:35 +0000 (18:54 +0100)
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/cluster.c

index 3e23c73fbc6cff116d7f8ed2f08e3e2b962b27da..a1e576bd03e85c50fd10e07caf934bc6676d8dec 100644 (file)
@@ -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