aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2025-10-26 22:44:10 -0700
committerchrislu <chris.lu@gmail.com>2025-10-26 22:50:37 -0700
commit2ad2ffcdffb118d0346ba61a74b0035184b7d443 (patch)
tree7327d97fb7c2d1fecede0e76cda1bc3ca918778d
parent0813138d578fd63b928ec1afc9ddabb191657743 (diff)
downloadseaweedfs-2ad2ffcdffb118d0346ba61a74b0035184b7d443.tar.xz
seaweedfs-2ad2ffcdffb118d0346ba61a74b0035184b7d443.zip
fix comment
-rw-r--r--weed/storage/disk_location.go2
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)