mirror of
https://github.com/minio/minio.git
synced 2025-11-29 05:19:03 -05:00
heal: Refactor heal command. (#2901)
- return errors for heal operation through rpc replies. - implement rotating wheel for healing status. Fixes #2491
This commit is contained in:
@@ -111,12 +111,12 @@ func errorCause(err error) error {
|
||||
|
||||
// Returns slice of underlying cause error.
|
||||
func errorsCause(errs []error) []error {
|
||||
Errs := make([]error, len(errs))
|
||||
cerrs := make([]error, len(errs))
|
||||
for i, err := range errs {
|
||||
if err == nil {
|
||||
continue
|
||||
}
|
||||
Errs[i] = errorCause(err)
|
||||
cerrs[i] = errorCause(err)
|
||||
}
|
||||
return Errs
|
||||
return cerrs
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user