Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

Commit

Permalink
mydump: set read block buffer size to BlockSize * 5
Browse files Browse the repository at this point in the history
  • Loading branch information
lonng committed Dec 30, 2018
1 parent eb011cd commit 5fc836f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning/mydump/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type Row struct {
func NewChunkParser(reader io.Reader, blockBufSize int64, ioWorkers *worker.RestoreWorkerPool) *ChunkParser {
return &ChunkParser{
reader: reader,
blockBuf: make([]byte, blockBufSize),
blockBuf: make([]byte, blockBufSize*5),
remainBuf: &bytes.Buffer{},
appendBuf: &bytes.Buffer{},
ioWorkers: ioWorkers,
Expand Down

0 comments on commit 5fc836f

Please sign in to comment.