mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00: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 {
|
||||
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…
Reference in a new issue