XL/erasure-read: Avoid memory copy, write to writer directly all the dataBlocks.

This commit is contained in:
Harshavardhana
2016-06-22 12:55:23 -07:00
committed by Krishna Srinivas
parent d4bea5fbf8
commit 9b82e64a11
3 changed files with 77 additions and 31 deletions
+5 -3
View File
@@ -840,15 +840,17 @@ func (s *MyAPIXLSuite) TestPartialContent(c *C) {
c.Assert(response.StatusCode, Equals, http.StatusOK)
// Prepare request
var table = []struct {
var testCases = []struct {
byteRange string
expectedString string
}{
{"6-7", "Wo"},
{"4-7", "o Wo"},
{"1-", "ello World"},
{"6-", "World"},
{"-2", "ld"},
{"-7", "o World"},
}
for _, t := range table {
for _, t := range testCases {
request, err = newTestRequest("GET", s.testServer.Server.URL+"/partial-content/bar",
0, nil, s.testServer.AccessKey, s.testServer.SecretKey)
c.Assert(err, IsNil)