Skip to content

Commit

Permalink
Fix crash in FLASH eviction
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnSully committed Mar 8, 2024
1 parent 088a1db commit d84fa52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3125,10 +3125,10 @@ bool redisDbPersistentData::removeCachedValue(const char *key, dictEntry **ppde)

// since we write ASAP the database already has a valid copy so safe to delete
if (ppde != nullptr) {
*ppde = dictUnlink(m_pdict, key);
robj *o = (robj*)dictGetVal(*ppde);
if (o->FExpires())
--m_numexpires;
*ppde = dictUnlink(m_pdict, key);
} else {
dictEntry *deT = dictFind(m_pdict, key);
robj *o = (robj*)dictGetVal(deT);
Expand Down

0 comments on commit d84fa52

Please sign in to comment.