tsdbCache: insert into lru if last_row loaded

This commit is contained in:
Minglei Jin 2022-06-27 10:09:16 +08:00
parent 9dd060b439
commit ce15ee0e41
1 changed files with 4 additions and 0 deletions

View File

@ -650,6 +650,10 @@ int32_t tsdbCacheGetLastrow(SLRUCache *pCache, tb_uid_t uid, STsdb *pTsdb, STSRo
if (code < 0 || pRow == NULL) {
return -1;
}
tsdbCacheInsertLastrow(pCache, uid, pRow);
LRUHandle *h = taosLRUCacheLookup(pCache, key, keyLen);
*ppRow = (STSRow *)taosLRUCacheValue(pCache, h);
}
return code;