From 8518a5b2565ef9c835b7b436170b68ec76be0f03 Mon Sep 17 00:00:00 2001 From: hzcheng Date: Thu, 16 Apr 2020 18:27:41 +0800 Subject: [PATCH] TD-100 --- src/tsdb/src/tsdbRWHelper.c | 2 +- src/util/tests/taosbsearchTest.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tsdb/src/tsdbRWHelper.c b/src/tsdb/src/tsdbRWHelper.c index 8b0025432b..02216cc69b 100644 --- a/src/tsdb/src/tsdbRWHelper.c +++ b/src/tsdb/src/tsdbRWHelper.c @@ -15,6 +15,7 @@ #include "tsdbMain.h" #include "tchecksum.h" #include "tscompression.h" +#include "talgo.h" // Local function definitions static int tsdbCheckHelperCfg(SHelperCfg *pCfg); @@ -885,7 +886,6 @@ static int tsdbMergeDataWithBlock(SRWHelper *pHelper, int blkIdx, SDataCols *pDa static int compTSKEY(const void *key1, const void *key2) { return ((TSKEY *)key1 - (TSKEY *)key2); } static int tsdbAdjustInfoSizeIfNeeded(SRWHelper *pHelper, size_t esize) { - SCompIdx *pIdx = pHelper->pCompIdx + pHelper->tableInfo.tid; if (tsizeof((void *)pHelper->pCompInfo) <= esize) { size_t tsize = esize + sizeof(SCompBlock) * 16; diff --git a/src/util/tests/taosbsearchTest.cpp b/src/util/tests/taosbsearchTest.cpp index fb01d34c03..0b250c9ecc 100644 --- a/src/util/tests/taosbsearchTest.cpp +++ b/src/util/tests/taosbsearchTest.cpp @@ -1,6 +1,6 @@ #include -#include "tutil.h" +#include "talgo.h" static int compareFunc(const void *arg1, const void *arg2) { return (*(int *)arg1) - (*(int *)arg2); } -- GitLab