mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
feat(server): extend populate command with expire, fix bug that expire the same key for multiple time (#4757)
* feat(server): extend populate command with expire, fix bug that expire the same key for multiple time
This commit is contained in:
parent
ac33cd871b
commit
93bd52ceb8
1 changed files with 20 additions and 20 deletions
|
@ -195,6 +195,7 @@ void DoPopulateBatch(string_view type, string_view prefix, size_t val_size, bool
|
|||
stub_tx->InitByArgs(cntx->ns, local_cntx.conn_state.db_index, args_span);
|
||||
|
||||
sf->service().InvokeCmd(cid, args_span, &crb, &local_cntx);
|
||||
}
|
||||
|
||||
if (expire_ttl_range.has_value()) {
|
||||
uint32_t start = expire_ttl_range->first;
|
||||
|
@ -218,7 +219,6 @@ void DoPopulateBatch(string_view type, string_view prefix, size_t val_size, bool
|
|||
sf->service().InvokeCmd(cid, args_span, &crb, &local_cntx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
local_tx->UnlockMulti();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue