mirror of
				https://github.com/minio/minio.git
				synced 2025-10-29 15:55:00 -04: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)) | ||||
| 	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 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user