Skip to content

Commit

Permalink
fix(obtenants): fixed #331; used topo info in status of tenant instea…
Browse files Browse the repository at this point in the history
…d of spec
  • Loading branch information
powerfooI committed May 6, 2024
1 parent cdc05fb commit cef327f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/dashboard/business/oceanbase/obtenant.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ func buildOverviewFromApiType(t *v1alpha1.OBTenant) *response.OBTenantOverview {
rt.Locality = t.Status.TenantRecordInfo.Locality
rt.PrimaryZone = t.Status.TenantRecordInfo.PrimaryZone

for i := range t.Spec.Pools {
pool := t.Spec.Pools[i]
for i := range t.Status.Pools {
pool := t.Status.Pools[i]
replica := response.OBTenantReplica{
Zone: pool.Zone,
Zone: pool.ZoneList,
Priority: pool.Priority,
Type: pool.Type.Name,
}
Expand Down

0 comments on commit cef327f

Please sign in to comment.