Browse Source

Update weed/plugin/worker/ec_repair_handler.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
codex/ec-repair-worker
Chris Lu 3 weeks ago
committed by GitHub
parent
commit
93eff8fa45
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      weed/plugin/worker/ec_repair_handler.go

4
weed/plugin/worker/ec_repair_handler.go

@ -410,8 +410,8 @@ func (h *EcRepairHandler) rebuildMissingShards(ctx context.Context, plan *ecrepa
}); err != nil {
return nil, err
}
if len(rebuilt) == 0 {
rebuilt = append(rebuilt, plan.MissingShards...)
if len(rebuilt) == 0 && len(plan.MissingShards) > 0 {
return nil, fmt.Errorf("rebuild shards for volume %d completed but returned no rebuilt shard IDs", plan.VolumeID)
}
return rebuilt, nil
}

Loading…
Cancel
Save