xl: ReedSolomon code fix small file erasure bug. (#1431)

For files less than 'dataBlocks', erasure encoding would fail
with short data due to a bug in the implementation itself.

Relax the error return, even a single byte can be properly
erasure coded without issues.

Fixes #1413
This commit is contained in:
Harshavardhana
2016-05-01 15:30:40 -07:00
parent e05aa762a9
commit ba7a55c321
3 changed files with 12 additions and 14 deletions

4
vendor/vendor.json vendored
View File

@@ -64,8 +64,8 @@
},
{
"path": "github.com/klauspost/reedsolomon",
"revision": "0b630aea2793158b43d0e18f2f50280bfb27c4b4",
"revisionTime": "2016-04-29T14:00:48-07:00"
"revision": "4fadad856421f3f13883bd681de8a9283809076e",
"revisionTime": "2016-05-01T12:00:51+02:00"
},
{
"path": "github.com/mattn/go-colorable",