mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 16:23:28 +03:00
XL/erasure-read: Avoid memory copy, write to writer directly all the dataBlocks.
This commit is contained in:
committed by
Krishna Srinivas
parent
d4bea5fbf8
commit
9b82e64a11
+5
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user