more
This commit is contained in:
parent
b59bda18f8
commit
89f9caeadd
|
@ -23,15 +23,15 @@ extern "C" {
|
||||||
typedef struct SVnodeReq SVnodeReq;
|
typedef struct SVnodeReq SVnodeReq;
|
||||||
typedef struct SVnodeRsp SVnodeRsp;
|
typedef struct SVnodeRsp SVnodeRsp;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {} EVReqT;
|
||||||
} EVReqT;
|
typedef enum {} EVRspT;
|
||||||
|
|
||||||
struct SVnodeReq {
|
struct SVnodeReq {
|
||||||
/* TODO */
|
EVReqT type;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct SVnodeRsp {
|
struct SVnodeRsp {
|
||||||
/* TODO */
|
EVRspT type;
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -16,7 +16,15 @@
|
||||||
#include "vnodeDef.h"
|
#include "vnodeDef.h"
|
||||||
|
|
||||||
int vnodeProcessWMsgs(SVnode *pVnode, SArray *pMsgs) {
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue