mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
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 {
|
||||
return err
|
||||
}
|
||||
if len(buckets) == 0 {
|
||||
totalCache.keepBuckets(buckets)
|
||||
updates <- totalCache.dui(dataUsageRoot, buckets)
|
||||
return nil
|
||||
}
|
||||
|
||||
totalCache.Info.BloomFilter = bf.bytes()
|
||||
|
||||
// Clear totals.
|
||||
|
Loading…
Reference in New Issue
Block a user