Browse Source

increase batch deletion size to 1024

pull/815/head
Chris Lu 6 years ago
parent
commit
251b596bc5
  1. 2
      weed/filesys/wfs_deletion.go

2
weed/filesys/wfs_deletion.go

@ -18,7 +18,7 @@ func (wfs *WFS) loopProcessingDeletion() {
select {
case fids := <-wfs.fileIdsDeletionChan:
fileIds = append(fileIds, fids...)
if len(fileIds) >= 256 {
if len(fileIds) >= 1024 {
glog.V(1).Infof("deleting fileIds len=%d", len(fileIds))
deleteFileIds(context.Background(), client, fileIds)
fileIds = fileIds[:0]

Loading…
Cancel
Save