mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 21:20:23 +03:00
heal: Avoid marking a bucket as done when remote drives are offline (#19587)
This commit is contained in:
@@ -44,8 +44,8 @@ const (
|
||||
healingMetricCheckAbandonedParts
|
||||
)
|
||||
|
||||
func (er erasureObjects) listAndHeal(bucket, prefix string, scanMode madmin.HealScanMode, healEntry func(string, metaCacheEntry, madmin.HealScanMode) error) error {
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
func (er erasureObjects) listAndHeal(ctx context.Context, bucket, prefix string, scanMode madmin.HealScanMode, healEntry func(string, metaCacheEntry, madmin.HealScanMode) error) error {
|
||||
ctx, cancel := context.WithCancel(ctx)
|
||||
defer cancel()
|
||||
|
||||
disks, _ := er.getOnlineDisksWithHealing(false)
|
||||
|
||||
Reference in New Issue
Block a user