common_meta::ddl::utils

Function handle_multiple_results

Source
pub fn handle_multiple_results<T: Debug>(
    results: Vec<Result<T>>,
) -> MultipleResults
Expand description

Handles the results of alter region requests.

For partial success, we need to check if the errors are retryable. If all the errors are retryable, we return a retryable error. Otherwise, we return the first error.