From 2ad2ffcdffb118d0346ba61a74b0035184b7d443 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 26 Oct 2025 22:44:10 -0700 Subject: [PATCH] fix comment --- weed/storage/disk_location.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)