提交 e0f951e6 编写于 作者: D dapan1121

fix: memory rows issue

上级 0cbcf624
......@@ -300,12 +300,16 @@ void tsdbMemTableCountRows(SMemTable *pMemTable, SHashObj* pTableMap, int
taosRLockLatch(&pMemTable->latch);
for (int32_t i = 0; i < pMemTable->nBucket; ++i) {
STbData *pTbData = pMemTable->aBucket[i];
void* p = taosHashGet(pTableMap, &pTbData->uid, sizeof(pTbData->uid));
if (p == NULL) {
continue;
while (pTbData) {
void* p = taosHashGet(pTableMap, &pTbData->uid, sizeof(pTbData->uid));
if (p == NULL) {
pTbData = pTbData->next;
continue;
}
rowsNum += tsdbCountTbDataRows(pTbData);
pTbData = pTbData->next;
}
rowsNum += tsdbCountTbDataRows(pTbData);
}
taosRUnLockLatch(&pMemTable->latch);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册