From c5f37d284ecdd2c9deab38b321f6a5a9b1fca1e9 Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Tue, 28 Mar 2023 19:27:49 +0800 Subject: [PATCH] fix: memory row count issue --- source/dnode/vnode/src/tsdb/tsdbMemTable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dnode/vnode/src/tsdb/tsdbMemTable.c b/source/dnode/vnode/src/tsdb/tsdbMemTable.c index 23c5ddcf4c..46f5aefba0 100644 --- a/source/dnode/vnode/src/tsdb/tsdbMemTable.c +++ b/source/dnode/vnode/src/tsdb/tsdbMemTable.c @@ -283,11 +283,11 @@ bool tsdbTbDataIterNext(STbDataIter *pIter) { } int64_t tsdbCountTbDataRows(STbData *pTbData) { - SMemSkipListNode *pNode = NULL; + SMemSkipListNode *pNode = pTbData->sl.pHead; int64_t rowsNum = 0; while (true) { - pNode = SL_GET_NODE_FORWARD(pTbData->sl.pHead, 0); + pNode = SL_GET_NODE_FORWARD(pNode, 0); if (pNode == pTbData->sl.pTail) { return rowsNum; } -- GitLab