aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_ec_encode.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-04-05 19:03:02 -0700
committerchrislu <chris.lu@gmail.com>2022-04-05 19:03:02 -0700
commitbc888226fc89f623391b78d4f642c63b7e100967 (patch)
treefe4d1b360a10d1f8cf2b6a2d6f842bcfa1bee6b2 /weed/shell/command_ec_encode.go
parent8b3d76b24dc52a0d125c372b439d711a065b2d40 (diff)
downloadseaweedfs-bc888226fc89f623391b78d4f642c63b7e100967.tar.xz
seaweedfs-bc888226fc89f623391b78d4f642c63b7e100967.zip
erasure coding: tracking encoded/decoded volumes
If an EC shard is created but not spread to other servers, the masterclient would think this shard is not located here.
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)
}