fix: crash while create mnode

This commit is contained in:
Shengliang Guan 2022-10-13 10:49:56 +08:00
parent 245d9f462b
commit 61160d3f4a
1 changed files with 3 additions and 1 deletions

View File

@ -239,7 +239,9 @@ void mndGetMnodeEpSet(SMnode *pMnode, SEpSet *pEpSet) {
pEpSet->inUse = (pEpSet->numOfEps + 1) % totalMnodes;
}
}
if (pObj->pDnode != NULL) {
addEpIntoEpSet(pEpSet, pObj->pDnode->fqdn, pObj->pDnode->port);
}
sdbRelease(pSdb, pObj);
}