Browse Source

fix chunk size limit for default 0

pull/664/head
Chris Lu 7 years ago
parent
commit
be0e88a606
  1. 2
      weed/filesys/dirty_page.go

2
weed/filesys/dirty_page.go

@ -60,7 +60,7 @@ func (pages *ContinuousDirtyPages) AddPage(ctx context.Context, offset int64, da
Data: data,
})
if pages.totalSize() >= pages.f.wfs.chunkSizeLimit {
if pages.f.wfs.chunkSizeLimit > 0 && pages.totalSize() >= pages.f.wfs.chunkSizeLimit {
chunk, err = pages.saveToStorage(ctx)
pages.pages = nil
glog.V(3).Infof("%s/%s add split [%d,%d)", pages.f.dir.Path, pages.f.Name, chunk.Offset, chunk.Offset+int64(chunk.Size))

Loading…
Cancel
Save