Commit 6a7b88e7 authored by Alexander Narsudinov's avatar Alexander Narsudinov
Browse files

Increase the buffer size of objects channel in `removeObjectsOneByOne`

I guess this is pretty reasonable to have the working queue with the same
size as the maximum number of workers.
parent d3e89f16
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -171,7 +171,7 @@ func (client *s3Client) removeObjects(bucketName, prefix string) error {
// will delete files one by one without file lock
func (client *s3Client) removeObjectsOneByOne(bucketName, prefix string) error {
	parallelism := 16
	objectsCh := make(chan minio.ObjectInfo, 1)
	objectsCh := make(chan minio.ObjectInfo, parallelism)
	guardCh := make(chan int, parallelism)
	var listErr error
	var totalObjects int64 = 0