Expire entry needs to be resorted after a subkey expires
Former-commit-id: b357803362728c26a1169e3cec279c693b86205b
This commit is contained in:
parent
b057a9cd7a
commit
70faf2f375
@ -135,6 +135,15 @@ void activeExpireCycleExpire(redisDb *db, expireEntry &e, long long now) {
|
|||||||
|
|
||||||
if (deleted)
|
if (deleted)
|
||||||
{
|
{
|
||||||
|
if (!pfat->FEmpty())
|
||||||
|
{
|
||||||
|
// We need to resort the expire entry since it may no longer be in the correct position
|
||||||
|
auto itr = db->setexpire->find(e.key());
|
||||||
|
expireEntry eT = std::move(e);
|
||||||
|
db->setexpire->erase(itr);
|
||||||
|
db->setexpire->insert(eT);
|
||||||
|
}
|
||||||
|
|
||||||
robj objT;
|
robj objT;
|
||||||
switch (val->type)
|
switch (val->type)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user