check if key is expired for async lookup

Former-commit-id: d4e3a2688e903fe426e791f8608495fca1c76df6
This commit is contained in:
malavan 2021-09-22 19:30:38 +00:00
parent acfa705d48
commit f9b88a79ce

View File

@ -227,6 +227,9 @@ robj_roptr lookupKeyRead(redisDb *db, robj *key, uint64_t mvccCheckpoint) {
}
}
if (serverTL->rgdbSnapshot[idb] != nullptr) {
if (keyIsExpired(serverTL->rgdbSnapshot[idb],key))
o = nullptr;
else
o = serverTL->rgdbSnapshot[idb]->find_cached_threadsafe(szFromObj(key)).val();
}
}