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.

fixed fail to initialize existing ec volume when volume server has separate index dictory (#5723)

Taehyung Lim4d0bf6ddd4ca
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go
index b7fa82197a..9f61ad8729 100644
--- a/weed/storage/disk_location.go
+++ b/weed/storage/disk_location.go
@@ -138,7 +138,7 @@ func (l *DiskLocation) loadExistingVolume(dirEntry os.DirEntry, needleMapKind Ne
// skip if ec volumes exists
if skipIfEcVolumesExists {
- if util.FileExists(l.Directory + "/" + volumeName + ".ecx") {
+ if util.FileExists(l.IdxDirectory + "/" + volumeName + ".ecx") {
return false
}
}