mirror of https://github.com/minio/minio.git
Merge pull request #356 from harshavardhana/pr_out_erasure_technique_is_now_uint8_handle_it_appropriately
This commit is contained in:
commit
4c7a61a68d
|
@ -31,6 +31,7 @@ type Technique uint8
|
||||||
const (
|
const (
|
||||||
Vandermonde Technique = iota
|
Vandermonde Technique = iota
|
||||||
Cauchy
|
Cauchy
|
||||||
|
None
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -23,7 +23,7 @@ func getErasureTechnique(technique string) (erasure.Technique, error) {
|
||||||
case technique == "Vandermonde":
|
case technique == "Vandermonde":
|
||||||
return erasure.Cauchy, nil
|
return erasure.Cauchy, nil
|
||||||
default:
|
default:
|
||||||
return -1, errors.New("Invalid erasure technique")
|
return erasure.None, errors.New("Invalid erasure technique")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue