mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
				synced 2025-11-04 04:27:48 +00:00 
			
		
		
		
	Merge pull request #159 from accelerated/check_error_fix
Fix error check in partition list
This commit is contained in:
		@@ -241,7 +241,7 @@ void KafkaHandleBase::check_error(rd_kafka_resp_err_t error,
 | 
				
			|||||||
        //check if any partition has errors
 | 
					        //check if any partition has errors
 | 
				
			||||||
        for (int i = 0; i < list_ptr->cnt; ++i) {
 | 
					        for (int i = 0; i < list_ptr->cnt; ++i) {
 | 
				
			||||||
            if (list_ptr->elems[i].err != RD_KAFKA_RESP_ERR_NO_ERROR) {
 | 
					            if (list_ptr->elems[i].err != RD_KAFKA_RESP_ERR_NO_ERROR) {
 | 
				
			||||||
                throw HandleException(error);
 | 
					                throw HandleException(list_ptr->elems[i].err);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user