diff options
| author | eddy-gfx <86091021+gfxlabs@users.noreply.github.com> | 2022-04-06 18:45:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-06 18:45:55 -0500 |
| commit | ec53eec94f8a745c6a289d593725824a00314793 (patch) | |
| tree | 415e4d43eb89c415caa5b38f31f7aa15bbe49cc3 /weed/shell/command_ec_encode.go | |
| parent | 7e925175715c57b49552a94d25d1d3dc40f1d881 (diff) | |
| parent | 3ab2c0e5c0263de5af35dad91a9107e6038f4203 (diff) | |
| download | seaweedfs-ec53eec94f8a745c6a289d593725824a00314793.tar.xz seaweedfs-ec53eec94f8a745c6a289d593725824a00314793.zip | |
Merge branch 'master' into a
Diffstat (limited to 'weed/shell/command_ec_encode.go')
| -rw-r--r-- | weed/shell/command_ec_encode.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/shell/command_ec_encode.go b/weed/shell/command_ec_encode.go index 9ae9b049c..251448908 100644 --- a/weed/shell/command_ec_encode.go +++ b/weed/shell/command_ec_encode.go @@ -95,7 +95,7 @@ func (c *commandEcEncode) Do(args []string, commandEnv *CommandEnv, writer io.Wr func doEcEncode(commandEnv *CommandEnv, collection string, vid needle.VolumeId, parallelCopy bool) (err error) { // find volume location locations, found := commandEnv.MasterClient.GetLocations(uint32(vid)) - if !found { + if !found && len(locations) > 0 { return fmt.Errorf("volume %d not found", vid) } |
