diff options
| author | chrislu <chris.lu@gmail.com> | 2025-10-26 22:44:10 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-10-26 22:44:10 -0700 |
| commit | 15fcc03b042d247df3e133d916d63c49145641ca (patch) | |
| tree | 7327d97fb7c2d1fecede0e76cda1bc3ca918778d | |
| parent | 502c18376397b60c785b62471cd851df2bf42d33 (diff) | |
| download | seaweedfs-origin/enhance-erasure-coding.tar.xz seaweedfs-origin/enhance-erasure-coding.zip | |
fix commentorigin/enhance-erasure-coding
| -rw-r--r-- | weed/storage/disk_location.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go index e8c1d10e4..28eabd719 100644 --- a/weed/storage/disk_location.go +++ b/weed/storage/disk_location.go @@ -155,7 +155,7 @@ func (l *DiskLocation) loadExistingVolume(dirEntry os.DirEntry, needleMapKind Ne if skipIfEcVolumesExists { ecxFilePath := filepath.Join(l.IdxDirectory, volumeName+".ecx") if util.FileExists(ecxFilePath) { - // Check if EC volume is valid by verifying shard count + // Validate EC volume: shard count, size consistency, and expected size vs .dat file if !l.validateEcVolume(collection, vid) { glog.Warningf("EC volume %d validation failed, removing incomplete EC files to allow .dat file loading", vid) l.removeEcVolumeFiles(collection, vid) |
