Merge pull request #4803 from taosdata/fix/TD-2644
[TD-2644]<fix>: process batch create table sub messages in mnodeVgrou…
This commit is contained in:
commit
d236ae8469
|
@ -986,6 +986,19 @@ static void mnodeProcessCreateVnodeRsp(SRpcMsg *rpcMsg) {
|
||||||
if (code != TSDB_CODE_SUCCESS && code != TSDB_CODE_MND_ACTION_IN_PROGRESS) {
|
if (code != TSDB_CODE_SUCCESS && code != TSDB_CODE_MND_ACTION_IN_PROGRESS) {
|
||||||
mnodeMsg->pVgroup = NULL;
|
mnodeMsg->pVgroup = NULL;
|
||||||
mnodeDestroyVgroup(pVgroup);
|
mnodeDestroyVgroup(pVgroup);
|
||||||
|
|
||||||
|
if (mnodeMsg->pBatchMasterMsg) {
|
||||||
|
++mnodeMsg->pBatchMasterMsg->received;
|
||||||
|
if (mnodeMsg->pBatchMasterMsg->successed + mnodeMsg->pBatchMasterMsg->received
|
||||||
|
>= mnodeMsg->pBatchMasterMsg->expected) {
|
||||||
|
dnodeSendRpcMWriteRsp(mnodeMsg->pBatchMasterMsg, code);
|
||||||
|
}
|
||||||
|
|
||||||
|
mnodeDestroySubMsg(mnodeMsg);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dnodeSendRpcMWriteRsp(mnodeMsg, code);
|
dnodeSendRpcMWriteRsp(mnodeMsg, code);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -995,6 +1008,19 @@ static void mnodeProcessCreateVnodeRsp(SRpcMsg *rpcMsg) {
|
||||||
.pObj = pVgroup
|
.pObj = pVgroup
|
||||||
};
|
};
|
||||||
sdbDeleteRow(&row);
|
sdbDeleteRow(&row);
|
||||||
|
|
||||||
|
if (mnodeMsg->pBatchMasterMsg) {
|
||||||
|
++mnodeMsg->pBatchMasterMsg->received;
|
||||||
|
if (mnodeMsg->pBatchMasterMsg->successed + mnodeMsg->pBatchMasterMsg->received
|
||||||
|
>= mnodeMsg->pBatchMasterMsg->expected) {
|
||||||
|
dnodeSendRpcMWriteRsp(mnodeMsg->pBatchMasterMsg, mnodeMsg->code);
|
||||||
|
}
|
||||||
|
|
||||||
|
mnodeDestroySubMsg(mnodeMsg);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
dnodeSendRpcMWriteRsp(mnodeMsg, mnodeMsg->code);
|
dnodeSendRpcMWriteRsp(mnodeMsg, mnodeMsg->code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue