fix: memory row count issue
This commit is contained in:
parent
e0f951e668
commit
c5f37d284e
|
@ -283,11 +283,11 @@ bool tsdbTbDataIterNext(STbDataIter *pIter) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t tsdbCountTbDataRows(STbData *pTbData) {
|
int64_t tsdbCountTbDataRows(STbData *pTbData) {
|
||||||
SMemSkipListNode *pNode = NULL;
|
SMemSkipListNode *pNode = pTbData->sl.pHead;
|
||||||
int64_t rowsNum = 0;
|
int64_t rowsNum = 0;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
pNode = SL_GET_NODE_FORWARD(pTbData->sl.pHead, 0);
|
pNode = SL_GET_NODE_FORWARD(pNode, 0);
|
||||||
if (pNode == pTbData->sl.pTail) {
|
if (pNode == pTbData->sl.pTail) {
|
||||||
return rowsNum;
|
return rowsNum;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue