Fix dangling lock
Former-commit-id: 212e56984edfa3221c73b1d3c083efcd28f0dd25
This commit is contained in:
parent
9204f7b629
commit
a0e502684d
@ -2519,7 +2519,11 @@ bool redisDbPersistentData::removeCachedValue(const char *key)
|
|||||||
|
|
||||||
auto itr = m_setchanged.find(key);
|
auto itr = m_setchanged.find(key);
|
||||||
if (itr != m_setchanged.end())
|
if (itr != m_setchanged.end())
|
||||||
|
{
|
||||||
|
if (m_spstorage != nullptr)
|
||||||
|
m_spstorage->batch_unlock();
|
||||||
return false; // can't evict
|
return false; // can't evict
|
||||||
|
}
|
||||||
|
|
||||||
// since we write ASAP the database already has a valid copy so safe to delete
|
// since we write ASAP the database already has a valid copy so safe to delete
|
||||||
dictDelete(m_pdict, key);
|
dictDelete(m_pdict, key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user