aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_ec_encode.go
diff options
context:
space:
mode:
authorguosj <515878133@qq.com>2022-04-19 09:26:06 +0800
committerguosj <515878133@qq.com>2022-04-19 09:26:06 +0800
commit94c702402e879843792acc4be2cf01198268f250 (patch)
tree593eb933dffc877010c761b2c55ec6c73875e9a3 /weed/shell/command_ec_encode.go
parent5c9a3bb8cf68ed99acb53dd548c92b54744d7fd7 (diff)
parent82ee31965dd7a1ad2d348c7e9dadb254744bf9b0 (diff)
downloadseaweedfs-94c702402e879843792acc4be2cf01198268f250.tar.xz
seaweedfs-94c702402e879843792acc4be2cf01198268f250.zip
Merge branch 'chrislusf-master'
Diffstat (limited to 'weed/shell/command_ec_encode.go')
-rw-r--r--weed/shell/command_ec_encode.go2
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)
}