All "soft" errors are retryable .. constraint violation are not */
| 3252 | |
| 3253 | /* All "soft" errors are retryable .. constraint violation are not */ |
| 3254 | static int is_retryable(int err_val) |
| 3255 | { |
| 3256 | switch (err_val) { |
| 3257 | case CDB2ERR_CHANGENODE: |
| 3258 | case CDB2ERR_NOMASTER: |
| 3259 | case CDB2ERR_TRAN_IO_ERROR: |
| 3260 | case CDB2ERR_REJECTED: |
| 3261 | case CDB2__ERROR_CODE__MASTER_TIMEOUT: |
| 3262 | return 1; |
| 3263 | |
| 3264 | default: |
| 3265 | return 0; |
| 3266 | } |
| 3267 | } |
| 3268 | |
| 3269 | static int retry_queries_and_skip(cdb2_hndl_tp *hndl, int num_retry, |
| 3270 | int skip_nrows); |
no outgoing calls
no test coverage detected