mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
fix: heal bucket metadata right before healing bucket (#11097)
optimization mainly to avoid listing the entire `.minio.sys/buckets/.minio.sys` directory, this can get really huge and comes in the way of startup routines, contents inside `.minio.sys/buckets/.minio.sys` are rather transient and not necessary to be healed.
This commit is contained in:
1 parent
705e196b6c
commit
2eb52ca5f4
18 files changed
+117
-112
No files matched your search
@@ -440,6 +440,11 @@ func (sys *BucketMetadataSys) concurrentLoad(ctx context.Context, buckets []Buck
|
||||
for index := range buckets {
|
||||
index := index
|
||||
g.Go(func() error {
|
||||
if _, err := objAPI.HealBucket(ctx, buckets[index].Name, madmin.HealOpts{
|
||||
Remove: true,
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
meta, err := loadBucketMetadata(ctx, objAPI, buckets[index].Name)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in new issue
Block a user