aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_ec_encode.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-04-07 18:50:27 +0500
committerKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2022-04-07 18:50:27 +0500
commitf5246b748d30ce1d0687dee2089848c96492ffff (patch)
tree5ebbde9317f9b3bff0b32d8976a09cdc61705786 /weed/shell/command_ec_encode.go
parent7ff248d5cda0dbcad722e2f7886bf3ca13874069 (diff)
parentabe3cc6df228a2700f25557f7d600f6810b450bf (diff)
downloadseaweedfs-f5246b748d30ce1d0687dee2089848c96492ffff.tar.xz
seaweedfs-f5246b748d30ce1d0687dee2089848c96492ffff.zip
Merge branch 'new_master' into hashicorp_raft
# Conflicts: # weed/pb/master_pb/master.pb.go
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)
}