Browse Source
Address review comments from Gemini and CodeRabbit
Address review comments from Gemini and CodeRabbit
Fix HIGH issues: - Fix empty disk discovery: Now discovers all disks from VolumeInfos, not just from EC shards. This ensures disks without EC shards are still considered for placement. - Fix EC shard count calculation in detection.go: Now correctly filters by DiskId and sums actual shard counts using ShardBits.ShardIdCount() instead of just counting EcShardInfo entries. Fix MEDIUM issues: - Add disk ID to evacuation log messages for consistency with other logging - Remove unused serverToDisks variable in placement.go - Fix comment that incorrectly said 'ascending' when sorting is 'descending'pull/7597/head
4 changed files with 54 additions and 32 deletions
-
67weed/shell/command_ec_common.go
-
6weed/shell/command_volume_server_evacuate.go
-
4weed/storage/erasure_coding/placement/placement.go
-
9weed/worker/tasks/erasure_coding/detection.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue