fix: memory rows count issue
This commit is contained in:
parent
2714ce2af8
commit
84eef542d5
|
@ -287,12 +287,12 @@ int64_t tsdbCountTbDataRows(STbData *pTbData) {
|
||||||
int64_t rowsNum = 0;
|
int64_t rowsNum = 0;
|
||||||
|
|
||||||
while (NULL != pNode) {
|
while (NULL != pNode) {
|
||||||
|
pNode = SL_GET_NODE_FORWARD(pNode, 0);
|
||||||
if (pNode == pTbData->sl.pTail) {
|
if (pNode == pTbData->sl.pTail) {
|
||||||
return rowsNum;
|
return rowsNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
rowsNum++;
|
rowsNum++;
|
||||||
pNode = SL_GET_NODE_FORWARD(pNode, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return rowsNum;
|
return rowsNum;
|
||||||
|
|
Loading…
Reference in New Issue