diff --git a/source/dnode/vnode/src/inc/tsdb.h b/source/dnode/vnode/src/inc/tsdb.h index 5aebc75032229e989c2f4b4efe140b6e40474c0a..d669c42088f8fd1a1eb076a1ab226ad8a57f977e 100644 --- a/source/dnode/vnode/src/inc/tsdb.h +++ b/source/dnode/vnode/src/inc/tsdb.h @@ -159,6 +159,9 @@ int32_t tsdbKeyCmprFn(const void *p1, const void *p2); int32_t tsdbBuildDeleteSkyline(SArray *aDelData, int32_t sidx, int32_t eidx, SArray *aSkyline); +// SColdata +int32_t tColDataCmprFn(const void *p1, const void *p2); + // KEYINFO #define KEYINFO_INIT_VAL \ ((KEYINFO){.maxKey.ts = TSKEY_MIN, \ diff --git a/source/dnode/vnode/src/tsdb/tsdbUtil.c b/source/dnode/vnode/src/tsdb/tsdbUtil.c index 720b417be09ce23607eb8354be857b6106ea8e3a..b52a9ed1042ddb4d30ca9f8baa0a13a669e03de7 100644 --- a/source/dnode/vnode/src/tsdb/tsdbUtil.c +++ b/source/dnode/vnode/src/tsdb/tsdbUtil.c @@ -463,7 +463,7 @@ void tsdbRowGetColVal(TSDBROW *pRow, STSchema *pTSchema, int32_t iCol, SColVal * p = taosbsearch(&(SColData){.cid = pTColumn->colId}, pRow->pBlockData->aColData, pRow->pBlockData->nCol, sizeof(SBlockCol), tColDataCmprFn, TD_EQ); if (p) { - pColData = (SBlockCol *)p; + pColData = (SColData *)p; ASSERT(pColData->flags); if (pColData->flags == HAS_NONE) {