mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-19 14:34:15 +00:00
Update weed/plugin/worker/ec_repair_handler.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent
cc53bb17ca
commit
93eff8fa45
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user