Browse Source

fix bug when vid not found

fix https://github.com/seaweedfs/seaweedfs/issues/4193
pull/3935/merge
chrislu 2 years ago
parent
commit
31bb91583f
  1. 2
      weed/shell/command_ec_encode.go

2
weed/shell/command_ec_encode.go

@ -99,7 +99,7 @@ func doEcEncode(commandEnv *CommandEnv, collection string, vid needle.VolumeId,
// find volume location // find volume location
locations, found := commandEnv.MasterClient.GetLocations(uint32(vid)) locations, found := commandEnv.MasterClient.GetLocations(uint32(vid))
if !found && len(locations) > 0 {
if !found {
return fmt.Errorf("volume %d not found", vid) return fmt.Errorf("volume %d not found", vid)
} }

Loading…
Cancel
Save