[TD-335] fix refcount error

This commit is contained in:
Shengliang Guan 2020-05-28 03:50:46 +00:00
parent a6c3ffd540
commit 09b68c4a14
1 changed files with 1 additions and 0 deletions

View File

@ -331,6 +331,7 @@ int32_t mnodeCreateVgroup(SMnodeMsg *pMsg, SDbObj *pDb) {
mPrint("vgId:%d, index:%d, dnode:%d", pVgroup->vgId, i, pVgroup->vnodeGid[i].dnodeId);
}
mnodeIncVgroupRef(pVgroup);
pMsg->pVgroup = pVgroup;
pMsg->expected = pVgroup->numOfVnodes;
mnodeSendCreateVgroupMsg(pVgroup, pMsg);