From 857788d42069b46c978314c446614f4af6fb16c6 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Thu, 16 Jul 2020 14:56:13 +0800 Subject: [PATCH] Fix debug code --- src/tsdb/src/tsdbRWHelper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tsdb/src/tsdbRWHelper.c b/src/tsdb/src/tsdbRWHelper.c index 2b110656d2..0d52b7ae33 100644 --- a/src/tsdb/src/tsdbRWHelper.c +++ b/src/tsdb/src/tsdbRWHelper.c @@ -589,7 +589,7 @@ void tsdbGetDataStatis(SRWHelper *pHelper, SDataStatis *pStatis, int numOfCols) int tsdbLoadBlockDataCols(SRWHelper *pHelper, SCompBlock *pCompBlock, SCompInfo *pCompInfo, int16_t *colIds, int numOfColIds) { ASSERT(pCompBlock->numOfSubBlocks >= 1); // Must be super block - SCompBlock *pTCompBlock = NULL; + SCompBlock *pTCompBlock = pCompBlock; int numOfSubBlocks = pCompBlock->numOfSubBlocks; if (numOfSubBlocks > 1) @@ -615,7 +615,7 @@ _err: } int tsdbLoadBlockData(SRWHelper *pHelper, SCompBlock *pCompBlock, SCompInfo *pCompInfo) { - SCompBlock *pTCompBlock = NULL; + SCompBlock *pTCompBlock = pCompBlock; int numOfSubBlock = pCompBlock->numOfSubBlocks; if (numOfSubBlock > 1) -- GitLab