add cluster maintenance healthcheck drive heal affinity (#10218)

This commit is contained in:
Harshavardhana authored and GitHub committed 2020-08-07 13:22:53 -07:00
1 parent 19c4f3082b
commit 6c6137b2e7
10 files changed
+194 -96

No files matched your search

+5
View File
@@ -1414,6 +1414,11 @@ func (s *erasureSets) HealFormat(ctx context.Context, dryRun bool) (res madmin.H
return madmin.HealResultItem{}, err
}
refFormat, err = getFormatErasureInQuorum(tmpNewFormats)
if err != nil {
return madmin.HealResultItem{}, err
}
// kill the monitoring loop such that we stop writing
// to indicate that we will re-initialize everything
// with new format.