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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
fix extract collection name from .dat file
Timur Nurutdinov4b0904e9c4a0
diff --git a/go/storage/store.go b/go/storage/store.goindex b37175f11c..ebf01d09f6 100644--- a/go/storage/store.go+++ b/go/storage/store.go@@ -207,7 +207,7 @@ func (l *DiskLocation) loadExistingVolumes(needleMapKind NeedleMapType) {if !dir.IsDir() && strings.HasSuffix(name, ".dat") {collection := ""base := name[:len(name)-len(".dat")]- i := strings.Index(base, "_")+ i := strings.LastIndex(base, "_")if i > 0 {collection, base = base[0:i], base[i+1:]}@@ -216,6 +216,8 @@ func (l *DiskLocation) loadExistingVolumes(needleMapKind NeedleMapType) {if v, e := NewVolume(l.Directory, collection, vid, needleMapKind, nil, nil); e == nil {l.volumes[vid] = vglog.V(0).Infof("data file %s, replicaPlacement=%s v=%d size=%d ttl=%s", l.Directory+"/"+name, v.ReplicaPlacement, v.Version(), v.Size(), v.Ttl.String())+ } else {+ glog.V(0).Infof("new volume %s error %s", name, e)}}}