diff --git a/mysqlcluster/syncer/status.go b/mysqlcluster/syncer/status.go index f488cdb7..6d319247 100644 --- a/mysqlcluster/syncer/status.go +++ b/mysqlcluster/syncer/status.go @@ -360,7 +360,7 @@ func (s *StatusSyncer) AutoRebuild(ctx context.Context, pod *corev1.Pod, items [ for _, other := range items { ord, err2 := utils.GetOrdinal(other.Name) if err2 != nil { - return err + return err2 } if ord == podNumber { @@ -856,7 +856,7 @@ func (s *StatusSyncer) DoRoRebuild(ctx context.Context, pod *corev1.Pod, items [ for _, other := range items { ord, err2 := utils.GetOrdinal(other.Name) if err2 != nil { - return err + return err2 } if ord == podNumber {