optimization for reading whole chunk with gzip encoding

This commit is contained in:
Chris Lu committed 2018-12-07 01:57:55 -08:00
1 parent 29f1673d97
commit 1bfb96f34d
5 files changed
+54 -16

No files matched your search

+1 -1
View File
@@ -161,6 +161,6 @@ func (s3sink *S3Sink) buildReadSeeker(chunk *filer2.ChunkView) (io.ReadSeeker, e
return nil, err
}
buf := make([]byte, chunk.Size)
util.ReadUrl(fileUrl, chunk.Offset, int(chunk.Size), buf)
util.ReadUrl(fileUrl, chunk.Offset, int(chunk.Size), buf, true)
return bytes.NewReader(buf), nil
}