mirror of https://github.com/minio/minio.git
fs: Handle no buckets (#12531)
Since total are sent after each bucket, deleting all would not make usage go to zero.
This commit is contained in:
parent
908ccf40ba
commit
42ad12ebf1
|
@ -251,6 +251,12 @@ func (fs *FSObjects) NSScanner(ctx context.Context, bf *bloomFilter, updates cha
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if len(buckets) == 0 {
|
||||||
|
totalCache.keepBuckets(buckets)
|
||||||
|
updates <- totalCache.dui(dataUsageRoot, buckets)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
totalCache.Info.BloomFilter = bf.bytes()
|
totalCache.Info.BloomFilter = bf.bytes()
|
||||||
|
|
||||||
// Clear totals.
|
// Clear totals.
|
||||||
|
|
Loading…
Reference in New Issue