提交 ce15ee0e 编写于 作者: M Minglei Jin

tsdbCache: insert into lru if last_row loaded

上级 9dd060b4
...@@ -650,6 +650,10 @@ int32_t tsdbCacheGetLastrow(SLRUCache *pCache, tb_uid_t uid, STsdb *pTsdb, STSRo ...@@ -650,6 +650,10 @@ int32_t tsdbCacheGetLastrow(SLRUCache *pCache, tb_uid_t uid, STsdb *pTsdb, STSRo
if (code < 0 || pRow == NULL) { if (code < 0 || pRow == NULL) {
return -1; return -1;
} }
tsdbCacheInsertLastrow(pCache, uid, pRow);
LRUHandle *h = taosLRUCacheLookup(pCache, key, keyLen);
*ppRow = (STSRow *)taosLRUCacheValue(pCache, h);
} }
return code; return code;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册