Skip to content

Commit

Permalink
Fix heal result item output to properly count drives and sets (minio#…
Browse files Browse the repository at this point in the history
  • Loading branch information
nitisht authored and kannappanr committed Nov 20, 2019
1 parent 8392d2f commit cc1a84b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cmd/xl-zones.go
Original file line number Diff line number Diff line change
Expand Up @@ -1211,10 +1211,10 @@ func (z *xlZones) HealFormat(ctx context.Context, dryRun bool) (madmin.HealResul
logger.LogIf(ctx, err)
continue
}
r.DiskCount = result.DiskCount
r.SetCount = result.SetCount
r.Before.Drives = append(r.Before.Drives, r.Before.Drives...)
r.After.Drives = append(r.After.Drives, r.After.Drives...)
r.DiskCount += result.DiskCount
r.SetCount += result.SetCount
r.Before.Drives = append(r.Before.Drives, result.Before.Drives...)
r.After.Drives = append(r.After.Drives, result.After.Drives...)
}
return r, nil
}
Expand All @@ -1234,10 +1234,10 @@ func (z *xlZones) HealBucket(ctx context.Context, bucket string, dryRun, remove
}
return result, err
}
r.DiskCount = result.DiskCount
r.SetCount = result.SetCount
r.Before.Drives = append(r.Before.Drives, r.Before.Drives...)
r.After.Drives = append(r.After.Drives, r.After.Drives...)
r.DiskCount += result.DiskCount
r.SetCount += result.SetCount
r.Before.Drives = append(r.Before.Drives, result.Before.Drives...)
r.After.Drives = append(r.After.Drives, result.After.Drives...)
}
return r, nil
}
Expand Down

0 comments on commit cc1a84b

Please sign in to comment.