optionally allow strict quorum listing (#10649)

```
export MINIO_API_LIST_STRICT_QUORUM=on
```

would enable listing in quorum if necessary
This commit is contained in:
Harshavardhana
2020-10-09 15:40:46 -07:00
committed by GitHub
parent a0d0645128
commit 6484453fc6
5 changed files with 53 additions and 16 deletions

View File

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