Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

skip ec volumes when loading normal volumes

Chris Luf0d1e7bd05e9
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go
index f169633566..c6fceb2c2e 100644
--- a/weed/storage/disk_location.go
+++ b/weed/storage/disk_location.go
@@ -95,6 +95,11 @@ func (l *DiskLocation) loadExistingVolume(fileInfo os.FileInfo, needleMapKind Ne
return false
}
+ // skip ec volumes
+ if util.FileExists(l.Directory + "/" + volumeName + ".ecx") {
+ return false
+ }
+
// check for incomplete volume
noteFile := l.Directory + "/" + volumeName + ".note"
if util.FileExists(noteFile) {