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
avoid overwriting variables
chrisluff7b6d779e72
diff --git a/weed/storage/store_ec.go b/weed/storage/store_ec.goindex 484ad3aad8..18dc5677c8 100644--- a/weed/storage/store_ec.go+++ b/weed/storage/store_ec.go@@ -119,7 +119,7 @@ func (s *Store) FindEcVolume(vid needle.VolumeId) (*erasure_coding.EcVolume, boo// shardFiles is a list of shard files, which is used to return the shard locationsfunc (s *Store) CollectEcShards(vid needle.VolumeId, shardFileNames []string) (ecVolume *erasure_coding.EcVolume, found bool) {for _, location := range s.Locations {- if s, found := location.CollectEcShards(vid, shardFileNames); found {+ if s, foundShards := location.CollectEcShards(vid, shardFileNames); foundShards {ecVolume = sfound = true}