diff options
| author | chrislu <chris.lu@gmail.com> | 2022-04-05 19:03:02 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-04-05 19:03:02 -0700 |
| commit | bc888226fc89f623391b78d4f642c63b7e100967 (patch) | |
| tree | fe4d1b360a10d1f8cf2b6a2d6f842bcfa1bee6b2 /weed/shell/command_ec_encode.go | |
| parent | 8b3d76b24dc52a0d125c372b439d711a065b2d40 (diff) | |
| download | seaweedfs-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.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) } |
