This commit is contained in:
Hongze Cheng 2021-11-17 16:45:42 +08:00
parent b59bda18f8
commit 89f9caeadd
2 changed files with 13 additions and 5 deletions

View File

@ -23,15 +23,15 @@ extern "C" {
typedef struct SVnodeReq SVnodeReq;
typedef struct SVnodeRsp SVnodeRsp;
typedef enum {
} EVReqT;
typedef enum {} EVReqT;
typedef enum {} EVRspT;
struct SVnodeReq {
/* TODO */
EVReqT type;
};
struct SVnodeRsp {
/* TODO */
EVRspT type;
};
#ifdef __cplusplus

View File

@ -16,7 +16,15 @@
#include "vnodeDef.h"
int vnodeProcessWMsgs(SVnode *pVnode, SArray *pMsgs) {
/* TODO */
SRpcMsg *pReq;
SRpcMsg *pRsp;
for (size_t i = 0; i < taosArrayGetSize(pMsgs); i++) {
pReq = taosArrayGet(pMsgs, i);
vnodeApplyWMsg(pVnode, pReq, pRsp);
}
return 0;
}