Skip to content

Commit 0d1d667

Browse files
committed
add nil check
1 parent ba942fd commit 0d1d667

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

clustering/status.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ func (p *managerProcess) GatherStatus(ctx context.Context) (*StatusSet, error) {
293293
if i == ss.Primary {
294294
continue
295295
}
296+
if ist == nil {
297+
continue
298+
}
296299
if ist.GlobalStatus.SemiSyncMasterWaitSessions > 0 {
297300
ss.MySQLStatus[i] = nil
298301
}

0 commit comments

Comments
 (0)