mirror of
https://github.com/minio/minio.git
synced 2025-12-09 09:06:32 -05:00
fix: close the channel appropriately for dataUsageEntry (#12432)
Bonus: initialize dataScanner routines after server config has initialized. fixes #12430
This commit is contained in:
@@ -333,6 +333,8 @@ func (fs *FSObjects) NSScanner(ctx context.Context, bf *bloomFilter, updates cha
|
||||
// The updated cache for the bucket is returned.
|
||||
// A partially updated bucket may be returned.
|
||||
func (fs *FSObjects) scanBucket(ctx context.Context, bucket string, cache dataUsageCache) (dataUsageCache, error) {
|
||||
defer close(cache.Info.updates)
|
||||
|
||||
// Get bucket policy
|
||||
// Check if the current bucket has a configured lifecycle policy
|
||||
lc, err := globalLifecycleSys.Get(bucket)
|
||||
|
||||
Reference in New Issue
Block a user