From 113bfd51ba40618179f196fda090854c0c2ef3ea Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Mon, 8 Nov 2021 09:39:20 +0800 Subject: [PATCH] make compile --- include/server/vnode/vnode.h | 2 +- source/dnode/vnode/impl/inc/vnodeRead.h | 2 -- source/dnode/vnode/impl/inc/vnodeWrite.h | 2 -- source/dnode/vnode/impl/src/vnodeInt.c | 6 +----- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/include/server/vnode/vnode.h b/include/server/vnode/vnode.h index 71e28f72de..66e17bdf48 100644 --- a/include/server/vnode/vnode.h +++ b/include/server/vnode/vnode.h @@ -37,7 +37,7 @@ void vnodeOptionsClear(SVnodeOptions *); #if 1 -#include "taosMsg.h" +#include "taosmsg.h" #include "trpc.h" typedef struct { diff --git a/source/dnode/vnode/impl/inc/vnodeRead.h b/source/dnode/vnode/impl/inc/vnodeRead.h index 6f5028d00e..5ce84b2ebf 100644 --- a/source/dnode/vnode/impl/inc/vnodeRead.h +++ b/source/dnode/vnode/impl/inc/vnodeRead.h @@ -21,8 +21,6 @@ extern "C" { #endif #include "vnodeInt.h" -typedef void SVnodeMsg; - void vnodeProcessReadMsg(SVnode *pVnode, SVnodeMsg *pMsg); #ifdef __cplusplus diff --git a/source/dnode/vnode/impl/inc/vnodeWrite.h b/source/dnode/vnode/impl/inc/vnodeWrite.h index 6ee773f79b..57f19b11c4 100644 --- a/source/dnode/vnode/impl/inc/vnodeWrite.h +++ b/source/dnode/vnode/impl/inc/vnodeWrite.h @@ -22,8 +22,6 @@ extern "C" { #endif -typedef void SVnodeMsg; - void vnodeProcessWriteMsg(SVnode* pVnode, SVnodeMsg* pMsg); #ifdef __cplusplus diff --git a/source/dnode/vnode/impl/src/vnodeInt.c b/source/dnode/vnode/impl/src/vnodeInt.c index aded02ab04..5f40fa5f73 100644 --- a/source/dnode/vnode/impl/src/vnodeInt.c +++ b/source/dnode/vnode/impl/src/vnodeInt.c @@ -13,7 +13,6 @@ * along with this program. If not, see . */ -#if 0 #define _DEFAULT_SOURCE #include "vnodeInt.h" #include "tqueue.h" @@ -21,7 +20,6 @@ int32_t vnodeInit(SVnodePara para) { return 0; } void vnodeCleanup() {} -SVnode *vnodeOpen(int32_t vgId, const char *path) { return NULL; } void vnodeClose(SVnode *pVnode) {} int32_t vnodeAlter(SVnode *pVnode, const SVnodeCfg *pCfg) { return 0; } SVnode *vnodeCreate(int32_t vgId, const char *path, const SVnodeCfg *pCfg) { return NULL; } @@ -70,6 +68,4 @@ void vnodeProcessMsg(SVnode *pVnode, SVnodeMsg *pMsg, EVnMsgType msgType) { case VN_MSG_TYPE_FETCH: break; } -} - -#endif \ No newline at end of file +} \ No newline at end of file