diff options
| author | chrislu <chris.lu@gmail.com> | 2023-04-22 11:49:59 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-04-22 11:49:59 -0700 |
| commit | ff7b6d779e725e6b07b63d12d6c7cebec24fdd57 (patch) | |
| tree | ec8d1460df63b6146ab4faf359957fd3fb5615b7 | |
| parent | 2e240704abd29d74d3dbe3515c22745d83480f38 (diff) | |
| download | seaweedfs-ff7b6d779e725e6b07b63d12d6c7cebec24fdd57.tar.xz seaweedfs-ff7b6d779e725e6b07b63d12d6c7cebec24fdd57.zip | |
avoid overwriting variables
fix https://github.com/seaweedfs/seaweedfs/issues/4365
| -rw-r--r-- | weed/storage/store_ec.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/store_ec.go b/weed/storage/store_ec.go index 484ad3aad..18dc5677c 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 locations func (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 = s found = true } |
