mirror of
https://github.com/minio/minio.git
synced 2025-11-10 22:10:12 -05:00
This change provides new implementations of the XL backend operations: - create file - read file - heal file Further this change adds table based tests for all three operations. This affects also the bitrot algorithm integration. Algorithms are now integrated in an idiomatic way (like crypto.Hash). Fixes #4696 Fixes #4649 Fixes #4359
This commit is contained in:
committed by
Dee Koder
parent
617f2394fb
commit
85fcee1919
13
vendor/github.com/klauspost/reedsolomon/README.md
generated
vendored
13
vendor/github.com/klauspost/reedsolomon/README.md
generated
vendored
@@ -22,6 +22,19 @@ To get the package use the standard:
|
||||
go get github.com/klauspost/reedsolomon
|
||||
```
|
||||
|
||||
# Changes
|
||||
|
||||
## July 20, 2017
|
||||
|
||||
`ReconstructData` added to [`Encoder`](https://godoc.org/github.com/klauspost/reedsolomon#Encoder) interface. This can cause compatibility issues if you implement your own Encoder. A simple workaround can be added:
|
||||
```Go
|
||||
func (e *YourEnc) ReconstructData(shards [][]byte) error {
|
||||
return ReconstructData(shards)
|
||||
}
|
||||
```
|
||||
|
||||
You can of course also do your own implementation. The [`StreamEncoder`](https://godoc.org/github.com/klauspost/reedsolomon#StreamEncoder) handles this without modifying the interface. This is a good lesson on why returning interfaces is not a good design.
|
||||
|
||||
# Usage
|
||||
|
||||
This section assumes you know the basics of Reed-Solomon encoding. A good start is this [Backblaze blog post](https://www.backblaze.com/blog/reed-solomon/).
|
||||
|
||||
Reference in New Issue
Block a user