From 7325413207eb6444990a051f9e894d5d966f9996 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Fri, 7 Jan 2022 05:53:14 +0000 Subject: [PATCH] fix compile issue --- include/dnode/vnode/tsdb/tsdb.h | 2 +- source/common/src/tmsg.c | 2 ++ source/dnode/vnode/tsdb/src/tsdbWrite.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/dnode/vnode/tsdb/tsdb.h b/include/dnode/vnode/tsdb/tsdb.h index 7ca050929e..67e33510cd 100644 --- a/include/dnode/vnode/tsdb/tsdb.h +++ b/include/dnode/vnode/tsdb/tsdb.h @@ -38,7 +38,7 @@ typedef struct STsdbCfg { STsdb *tsdbOpen(const char *path, const STsdbCfg *pTsdbCfg, SMemAllocatorFactory *pMAF); void tsdbClose(STsdb *); void tsdbRemove(const char *path); -int tsdbInsertData(STsdb *pTsdb, SSubmitMsg *pMsg); +int tsdbInsertData(STsdb *pTsdb, SSubmitMsg *pMsg, SSubmitRsp *pRsp); int tsdbPrepareCommit(STsdb *pTsdb); int tsdbCommit(STsdb *pTsdb); diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index 6a3d050da1..c99ca151fc 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -83,6 +83,8 @@ SMemRow tGetSubmitBlkNext(SSubmitBlkIter *pIter) { } return row; } +} + int tSerializeSClientHbReq(void **buf, const SClientHbReq *pReq) { int tlen = 0; tlen += taosEncodeSClientHbKey(buf, &pReq->connKey); diff --git a/source/dnode/vnode/tsdb/src/tsdbWrite.c b/source/dnode/vnode/tsdb/src/tsdbWrite.c index 599b58e0e2..570e821af0 100644 --- a/source/dnode/vnode/tsdb/src/tsdbWrite.c +++ b/source/dnode/vnode/tsdb/src/tsdbWrite.c @@ -15,7 +15,7 @@ #include "tsdbDef.h" -int tsdbInsertData(STsdb *pTsdb, SSubmitMsg *pMsg) { +int tsdbInsertData(STsdb *pTsdb, SSubmitMsg *pMsg, SSubmitRsp *pRsp) { // Check if mem is there. If not, create one. pTsdb->mem = tsdbNewMemTable(pTsdb); if (pTsdb->mem == NULL) {