1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-09-18 15:00:53 +02:00

increase batch deletion size to 1024

This commit is contained in:
Chris Lu 2019-01-03 22:21:57 -08:00
parent aac11fb832
commit 251b596bc5

View file

@ -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]