提交 2dab54f6 编写于 作者: S shenglian zhou

(other):fix the core dump caused by vgroup deletion during dnode status msg...

(other):fix the core dump caused by vgroup deletion during dnode status msg and mnode processing the message
上级 f4e2ce14
......@@ -903,6 +903,8 @@ static SCreateVnodeMsg *mnodeBuildVnodeMsg(SVgObj *pVgroup) {
SDbObj *pDb = pVgroup->pDb;
if (pDb == NULL) return NULL;
if (pVgroup->idPool == NULL) return NULL;
SCreateVnodeMsg *pVnode = rpcMallocCont(sizeof(SCreateVnodeMsg));
if (pVnode == NULL) return NULL;
......@@ -1057,6 +1059,11 @@ void mnodeSendCompactVgroupMsg(SVgObj *pVgroup) {
}
static void mnodeSendCreateVnodeMsg(SVgObj *pVgroup, SRpcEpSet *epSet, void *ahandle) {
SCreateVnodeMsg *pCreate = mnodeBuildVnodeMsg(pVgroup);
if (pCreate == NULL) {
mError("vgId: %d, can not create vnode msg for send create vnode", pVgroup->vgId);
return;
}
SRpcMsg rpcMsg = {
.ahandle = ahandle,
.pCont = pCreate,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册