fix(tdb/pcache): not use lru page if already in hash

This commit is contained in:
Minglei Jin 2024-02-28 15:08:48 +08:00
parent 7ba2e37384
commit 64f2dc607a
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ static SPage *tdbPCacheFetchImpl(SPCache *pCache, const SPgid *pPgid, TXN *pTxn)
}
// 3. Try to Recycle a page
if (!pPage && !pCache->lru.pLruPrev->isAnchor) {
if (!pPageH && !pPage && !pCache->lru.pLruPrev->isAnchor) {
pPage = pCache->lru.pLruPrev;
tdbPCacheRemovePageFromHash(pCache, pPage);
tdbPCachePinPage(pCache, pPage);