fix: memory rows count issue

This commit is contained in:
dapan1121 2023-03-29 15:45:18 +08:00
parent 2714ce2af8
commit 84eef542d5
1 changed files with 1 additions and 1 deletions

View File

@ -287,12 +287,12 @@ int64_t tsdbCountTbDataRows(STbData *pTbData) {
int64_t rowsNum = 0;
while (NULL != pNode) {
pNode = SL_GET_NODE_FORWARD(pNode, 0);
if (pNode == pTbData->sl.pTail) {
return rowsNum;
}
rowsNum++;
pNode = SL_GET_NODE_FORWARD(pNode, 0);
}
return rowsNum;