Fix crash in async delete when storage provider is not set and key doesn't actually exist
Former-commit-id: 4a4828390118ab52851d8bf229c4ae853100053c
This commit is contained in:
parent
4e609863b6
commit
9797d4a8f2
@ -60,9 +60,10 @@ bool redisDbPersistentData::asyncDelete(robj *key) {
|
||||
return syncDelete(key); // async delte never makes sense with a storage provider
|
||||
|
||||
dictEntry *de = dictUnlink(m_pdict,ptrFromObj(key));
|
||||
if (de) {
|
||||
if (m_pdbSnapshot != nullptr && m_pdbSnapshot->find_cached_threadsafe(szFromObj(key)) != nullptr)
|
||||
dictAdd(m_pdictTombstone, sdsdup((sds)dictGetKey(de)), nullptr);
|
||||
if (de) {
|
||||
|
||||
robj *val = (robj*)dictGetVal(de);
|
||||
if (val->FExpires())
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user