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
remove .vif files
Chris Ludf636e4c14e2
diff --git a/weed/server/volume_grpc_erasure_coding.go b/weed/server/volume_grpc_erasure_coding.goindex 4bca9948e9..67efc0f6d5 100644--- a/weed/server/volume_grpc_erasure_coding.go+++ b/weed/server/volume_grpc_erasure_coding.go@@ -173,6 +173,7 @@ func (vs *VolumeServer) VolumeEcShardsDelete(ctx context.Context, req *volume_se// check whether to delete the .ecx and .ecj file alsohasEcxFile := false+ hasIdxFile := falseexistingShardCount := 0bName := filepath.Base(baseFilename)@@ -186,6 +187,10 @@ func (vs *VolumeServer) VolumeEcShardsDelete(ctx context.Context, req *volume_sehasEcxFile = truecontinue}+ if fileInfo.Name() == bName+".idx" {+ hasIdxFile = true+ continue+ }if strings.HasPrefix(fileInfo.Name(), bName+".ec") {existingShardCount++}@@ -200,6 +205,10 @@ func (vs *VolumeServer) VolumeEcShardsDelete(ctx context.Context, req *volume_sereturn nil, err}}+ if !hasIdxFile {+ // .vif is used for ec volumes and normal volumes+ os.Remove(baseFilename + ".vif")+ }return &volume_server_pb.VolumeEcShardsDeleteResponse{}, nil}