diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-06-18 09:52:35 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-06-18 09:52:35 -0700 |
| commit | ae1994cbc1692133cc5f4ac30e8060a2b0d9dda8 (patch) | |
| tree | 34583a0c17c24aaa1907f97b75fbc89771bac63f /weed/shell/command_volume_fix_replication.go | |
| parent | ce79ec0bd4aa3acfc9d9f4cf6f5dc817bbe9655e (diff) | |
| download | seaweedfs-ae1994cbc1692133cc5f4ac30e8060a2b0d9dda8.tar.xz seaweedfs-ae1994cbc1692133cc5f4ac30e8060a2b0d9dda8.zip | |
erasure coding: fix cases where there are no .ecj files
Diffstat (limited to 'weed/shell/command_volume_fix_replication.go')
| -rw-r--r-- | weed/shell/command_volume_fix_replication.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/shell/command_volume_fix_replication.go b/weed/shell/command_volume_fix_replication.go index 19da89b67..6b5e4e735 100644 --- a/weed/shell/command_volume_fix_replication.go +++ b/weed/shell/command_volume_fix_replication.go @@ -121,7 +121,10 @@ func (c *commandVolumeFixReplication) Do(args []string, commandEnv *CommandEnv, VolumeId: volumeInfo.Id, SourceDataNode: sourceNode.dataNode.Id, }) - return fmt.Errorf("copying from %s => %s : %v", sourceNode.dataNode.Id, dst.dataNode.Id, replicateErr) + if replicateErr != nil { + return fmt.Errorf("copying from %s => %s : %v", sourceNode.dataNode.Id, dst.dataNode.Id, replicateErr) + } + return nil }) if err != nil { |
