erasure coding: fix cases where there are no .ecj files

This commit is contained in:
Chris Lu committed 2020-06-18 09:52:35 -07:00
1 parent ce79ec0bd4
commit ae1994cbc1
4 files changed
+16 -5

No files matched your search

+4 -1
View File
@@ -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 {