Skip to content

Commit

Permalink
reflect comments
Browse files Browse the repository at this point in the history
Signed-off-by: Masayuki Ishii <masa213f@gmail.com>
  • Loading branch information
masa213f committed Aug 28, 2023
1 parent d6a4fa9 commit 76c95b8
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions clustering/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,17 +203,16 @@ func (p *managerProcess) GatherStatus(ctx context.Context) (*StatusSet, error) {
return
}
if err != nil {
if j == statusCheckRetryMax {
logFromContext(ctx).Error(err, "failed to get mysqld status, mysqld is not ready")
return
} else {
logFromContext(ctx).Error(err, "failed to get mysqld status, will retry")
time.Sleep(statusCheckRetryInterval)
continue
}
ss.MySQLStatus[index] = ist
return
}
// process errors
if j == statusCheckRetryMax {
logFromContext(ctx).Error(err, "failed to get mysqld status, mysqld is not ready")
return
}
ss.MySQLStatus[index] = ist
return
logFromContext(ctx).Error(err, "failed to get mysqld status, will retry")
time.Sleep(statusCheckRetryInterval)
}
}(i)
}
Expand Down

0 comments on commit 76c95b8

Please sign in to comment.