Merge pull request #5472 from taosdata/fix/TD-3337
[TD-3337]<fix>: [balance] fix pVgroup->pDb NULL pointer crash
This commit is contained in:
commit
5e94568d53
|
@ -425,7 +425,7 @@ static bool bnMonitorVgroups() {
|
|||
|
||||
while (1) {
|
||||
pIter = mnodeGetNextVgroup(pIter, &pVgroup);
|
||||
if (pVgroup == NULL) break;
|
||||
if (pVgroup == NULL || pVgroup->pDb == NULL) break;
|
||||
|
||||
int32_t dbReplica = pVgroup->pDb->cfg.replications;
|
||||
int32_t vgReplica = pVgroup->numOfVnodes;
|
||||
|
@ -721,4 +721,4 @@ int32_t bnAlterDnode(struct SDnodeObj *pSrcDnode, int32_t vnodeId, int32_t dnode
|
|||
mnodeDecDnodeRef(pDestDnode);
|
||||
|
||||
return code;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue