diff --git a/source/dnode/vnode/src/tsdb/tsdbMemTable.c b/source/dnode/vnode/src/tsdb/tsdbMemTable.c index 15fdbe2212b299ffc1700e8db331f5699f893159..d0ff403bf70a96f114b0722bfb13f7ce035edfb4 100644 --- a/source/dnode/vnode/src/tsdb/tsdbMemTable.c +++ b/source/dnode/vnode/src/tsdb/tsdbMemTable.c @@ -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;