[TD-3337]<fix>: [balance] fix pVgroup->pDb NULL pointer crash

This commit is contained in:
Minglei Jin 2021-03-17 16:26:37 +08:00
parent 7d9aef527a
commit 785645eef4
1 changed files with 2 additions and 2 deletions

View File

@ -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;