mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
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.
This commit is contained in:
parent
c8852ebf19
commit
05705bc8bb
@ -1765,7 +1765,7 @@ void migrateCommand(redisClient *c) {
|
|||||||
return;
|
return;
|
||||||
if (getLongFromObjectOrReply(c,c->argv[4],&dbid,NULL) != REDIS_OK)
|
if (getLongFromObjectOrReply(c,c->argv[4],&dbid,NULL) != REDIS_OK)
|
||||||
return;
|
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
|
/* 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
|
* nothing to migrate (for instance the key expired in the meantime), but
|
||||||
|
Loading…
Reference in New Issue
Block a user