mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -05:00
fix: add missing readTriggerCh close (#12593)
This commit is contained in:
parent
a69c2a2fb3
commit
ec8d93f756
@ -117,6 +117,8 @@ func (p *parallelReader) Read(dst [][]byte) ([][]byte, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
readTriggerCh := make(chan bool, len(p.readers))
|
readTriggerCh := make(chan bool, len(p.readers))
|
||||||
|
defer close(readTriggerCh) // close the channel upon return
|
||||||
|
|
||||||
for i := 0; i < p.dataBlocks; i++ {
|
for i := 0; i < p.dataBlocks; i++ {
|
||||||
// Setup read triggers for p.dataBlocks number of reads so that it reads in parallel.
|
// Setup read triggers for p.dataBlocks number of reads so that it reads in parallel.
|
||||||
readTriggerCh <- true
|
readTriggerCh <- true
|
||||||
|
Loading…
Reference in New Issue
Block a user