mirror of
https://github.com/fluencelabs/redis
synced 2025-03-20 17:40:50 +00:00
Merge pull request #3673 from badboy/reset-ttl-on-migrating
Reset the ttl for additional keys
This commit is contained in:
commit
c9f0456d81
@ -4841,6 +4841,7 @@ try_again:
|
|||||||
|
|
||||||
/* Create RESTORE payload and generate the protocol to call the command. */
|
/* Create RESTORE payload and generate the protocol to call the command. */
|
||||||
for (j = 0; j < num_keys; j++) {
|
for (j = 0; j < num_keys; j++) {
|
||||||
|
ttl = 0;
|
||||||
expireat = getExpire(c->db,kv[j]);
|
expireat = getExpire(c->db,kv[j]);
|
||||||
if (expireat != -1) {
|
if (expireat != -1) {
|
||||||
ttl = expireat-mstime();
|
ttl = expireat-mstime();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user