mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
avoid overwriting variables
fix https://github.com/seaweedfs/seaweedfs/issues/4365
This commit is contained in:
parent
2e240704ab
commit
ff7b6d779e
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue