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

tsdb/cache: build skyline only if there's del data

上级 94b9599f
......@@ -2507,9 +2507,11 @@ static int32_t nextRowIterGet(CacheNextRowIter *pIter, TSDBROW **ppRow, bool *pI
if (pTombData) {
taosArrayAddAll(pIter->pMemDelData, pTombData);
}
code = tsdbBuildDeleteSkyline(pIter->pMemDelData, 0, (int32_t)(TARRAY_SIZE(pIter->pMemDelData) - 1),
pIter->pSkyline);
size_t delSize = TARRAY_SIZE(pIter->pMemDelData);
if (delSize > 0) {
code = tsdbBuildDeleteSkyline(pIter->pMemDelData, 0, (int32_t)(delSize - 1), pIter->pSkyline);
}
pIter->iSkyline = taosArrayGetSize(pIter->pSkyline) - 1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册