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

tsdb/cache-read: release lru handle in case table's empty

上级 058ea587
......@@ -250,7 +250,11 @@ int32_t tsdbRetrieveCacheRows(void* pReader, SSDataBlock* pResBlock, const int32
return code;
}
if (h == NULL || taosArrayGetSize(pRow) <= 0) {
if (h == NULL) {
continue;
}
if (taosArrayGetSize(pRow) <= 0) {
tsdbCacheRelease(lruCache, h);
continue;
}
......@@ -319,7 +323,11 @@ int32_t tsdbRetrieveCacheRows(void* pReader, SSDataBlock* pResBlock, const int32
return code;
}
if (h == NULL || taosArrayGetSize(pRow) <= 0) {
if (h == NULL) {
continue;
}
if (taosArrayGetSize(pRow) <= 0) {
tsdbCacheRelease(lruCache, h);
continue;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册