mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-09-19 07:21:00 +02:00
increase batch deletion size to 1024
This commit is contained in:
parent
aac11fb832
commit
251b596bc5
|
@ -18,7 +18,7 @@ func (wfs *WFS) loopProcessingDeletion() {
|
||||||
select {
|
select {
|
||||||
case fids := <-wfs.fileIdsDeletionChan:
|
case fids := <-wfs.fileIdsDeletionChan:
|
||||||
fileIds = append(fileIds, fids...)
|
fileIds = append(fileIds, fids...)
|
||||||
if len(fileIds) >= 256 {
|
if len(fileIds) >= 1024 {
|
||||||
glog.V(1).Infof("deleting fileIds len=%d", len(fileIds))
|
glog.V(1).Infof("deleting fileIds len=%d", len(fileIds))
|
||||||
deleteFileIds(context.Background(), client, fileIds)
|
deleteFileIds(context.Background(), client, fileIds)
|
||||||
fileIds = fileIds[:0]
|
fileIds = fileIds[:0]
|
||||||
|
|
Loading…
Reference in a new issue