data-usage: Avoid crawling duplicated call (#8843)

This fix will also picks 3 and not 4 disks from a single erasure set.
This commit is contained in:
Anis Elleuch
2020-01-17 18:59:37 +01:00
committed by kannappanr
parent 2bb69033e5
commit 017067e11f
3 changed files with 7 additions and 10 deletions

View File

@@ -88,7 +88,8 @@ func runDataUsageInfoForXLZones(ctx context.Context, z *xlZones, endCh <-chan st
time.Sleep(5 * time.Minute)
continue
}
// Break without locking
// Break without unlocking, this node will acquire
// data usage calculator role for its lifetime.
break
}