diff --git a/include/dnode/vnode/vnode.h b/include/dnode/vnode/vnode.h index e708d7b545..812f313e71 100644 --- a/include/dnode/vnode/vnode.h +++ b/include/dnode/vnode/vnode.h @@ -246,8 +246,8 @@ static FORCE_INLINE void vnodeSetCreateNtbReq(SVnodeReq *pReq, char *name, uint3 pReq->ctReq.ntbCfg.pSchema = pSchema; } -int vnodeBuildReq(void **buf, const SVnodeReq *pReq, uint8_t type); -void *vnodeParseReq(void *buf, SVnodeReq *pReq, uint8_t type); +int vnodeBuildReq(void **buf, const SVnodeReq *pReq, tmsg_t type); +void *vnodeParseReq(void *buf, SVnodeReq *pReq, tmsg_t type); /* ------------------------ FOR COMPILE ------------------------ */ diff --git a/source/dnode/vnode/impl/src/vnodeRequest.c b/source/dnode/vnode/impl/src/vnodeRequest.c index 545d89ebb7..efbba6352f 100644 --- a/source/dnode/vnode/impl/src/vnodeRequest.c +++ b/source/dnode/vnode/impl/src/vnodeRequest.c @@ -18,7 +18,7 @@ static int vnodeBuildCreateTableReq(void **buf, const SVCreateTableReq *pReq); static void *vnodeParseCreateTableReq(void *buf, SVCreateTableReq *pReq); -int vnodeBuildReq(void **buf, const SVnodeReq *pReq, uint8_t type) { +int vnodeBuildReq(void **buf, const SVnodeReq *pReq, tmsg_t type) { int tsize = 0; tsize += taosEncodeFixedU64(buf, pReq->ver); @@ -36,7 +36,7 @@ int vnodeBuildReq(void **buf, const SVnodeReq *pReq, uint8_t type) { return tsize; } -void *vnodeParseReq(void *buf, SVnodeReq *pReq, uint8_t type) { +void *vnodeParseReq(void *buf, SVnodeReq *pReq, tmsg_t type) { buf = taosDecodeFixedU64(buf, &(pReq->ver)); switch (type) {