fs: Async buffer: use ReadFill to fill the chunks and increase to 1MB

This commit is contained in:
Nick Craig-Wood
2017-02-14 22:36:37 +00:00
parent 493da54113
commit 7fa687b3e1
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -348,7 +348,7 @@ func NewAccount(in io.ReadCloser, obj Object) *Account {
//
// If the file is above a certain size it adds an Async reader
func NewAccountSizeNameWithBuffer(in io.ReadCloser, size int64, name string) *Account {
const bufSize = 128 * 1024
const bufSize = 1024 * 1024
var buffers int
if size >= int64(Config.BufferSize) {
buffers = int(int64(Config.BufferSize) / bufSize)