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