diff --git a/src/db.cpp b/src/db.cpp index 1b521cfa6..12edacb17 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -3121,11 +3121,6 @@ bool redisDbPersistentData::removeCachedValue(const char *key, dictEntry **ppde) if (m_spstorage != nullptr) m_spstorage->batch_unlock(); - std::unique_lock ul(g_expireLock); - auto itr = m_setexpire->find(key); - if (itr != m_setexpire->end()) - m_setexpire->erase(itr); - return true; }