[TD-570] lost while create vgroup

This commit is contained in:
Shengliang Guan 2020-06-16 01:48:42 +00:00
parent 07848127b7
commit edfb1859a1
1 changed files with 5 additions and 2 deletions

View File

@ -1581,8 +1581,11 @@ static int32_t mnodeProcessCreateChildTableMsg(SMnodeMsg *pMsg) {
return mnodeCreateVgroup(pMsg, pMsg->pDb);
}
pMsg->pVgroup = pVgroup;
mnodeIncVgroupRef(pVgroup);
if (pMsg->pVgroup == NULL) {
pMsg->pVgroup = pVgroup;
mnodeIncVgroupRef(pVgroup);
}
pMsg->pTable = (STableObj *)mnodeDoCreateChildTable(pMsg, sid);
if (pMsg->pTable == NULL) {
return terrno;