mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Decode on chunks missing should build and continue
This commit is contained in:
parent
bd5a8c126c
commit
ee7ff7c436
@ -12,8 +12,8 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = "minio-encode"
|
app.Name = "minio-decode"
|
||||||
app.Usage = "erasure encode a byte stream"
|
app.Usage = "erasure decode a byte stream"
|
||||||
app.Flags = []cli.Flag{
|
app.Flags = []cli.Flag{
|
||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "input,i",
|
Name: "input,i",
|
||||||
@ -63,7 +63,7 @@ func main() {
|
|||||||
var err error
|
var err error
|
||||||
chunks[i], err = ioutil.ReadFile(inputFilePath + "." + strconv.Itoa(i))
|
chunks[i], err = ioutil.ReadFile(inputFilePath + "." + strconv.Itoa(i))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user