tsdb/cache-read: release lru handle in case table's empty
This commit is contained in:
parent
058ea5871c
commit
04948080bc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue