tsdb/pg-cache: use pgno for cache key instead of blkno

This commit is contained in:
Minglei Jin 2023-11-02 09:42:19 +08:00
parent 52fd71ce13
commit d0327e07b8
1 changed files with 1 additions and 1 deletions

View File

@ -3169,7 +3169,7 @@ int32_t tsdbCacheGetPageS3(SLRUCache *pCache, STsdbFD *pFD, int64_t pgno, LRUHan
char key[128] = {0};
int keyLen = 0;
getBCacheKey(pFD->fid, pFD->cid, pFD->blkno, key, &keyLen);
getBCacheKey(pFD->fid, pFD->cid, pgno, key, &keyLen);
*handle = taosLRUCacheLookup(pCache, key, keyLen);
return code;