fix: allow crawler to crawl on disks without usage constraints (#10677)

additionally also change the resolution usage wise
return of disks, allows to small byte level differences
to be masked.
This commit is contained in:
Harshavardhana
2020-10-14 12:12:10 -07:00
committed by GitHub
parent 23773bb32b
commit f9be783f3e
2 changed files with 34 additions and 3 deletions

View File

@@ -252,7 +252,7 @@ func (er erasureObjects) crawlAndGetDataUsage(ctx context.Context, buckets []Buc
}
// Collect disks we can use.
disks := er.getLoadBalancedDisks(true)
disks := er.getOnlineDisks()
if len(disks) == 0 {
logger.Info(color.Green("data-crawl:") + " all disks are offline or being healed, skipping crawl")
return nil