Skip to content

Commit

Permalink
cmd/gc: use MaxDeletes as remove concurrency (#5532)
Browse files Browse the repository at this point in the history
  • Loading branch information
anysql authored Jan 9, 2025
1 parent 0f14ee1 commit 3006738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/meta/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -2540,7 +2540,7 @@ func (m *baseMeta) CleanupTrashBefore(ctx Context, edge time.Time, increProgress
}
for _, se := range subEntries {
var c uint64
st = m.Remove(ctx, e.Inode, string(se.Name), false, RmrDefaultThreads, &c)
st = m.Remove(ctx, e.Inode, string(se.Name), false, m.conf.MaxDeletes, &c)
if st == 0 {
count += int(c)
if increProgress != nil {
Expand Down

0 comments on commit 3006738

Please sign in to comment.