MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / is_retryable

Function is_retryable

cdb2api/cdb2api.c:3254–3267  ·  view source on GitHub ↗

All "soft" errors are retryable .. constraint violation are not */

Source from the content-addressed store, hash-verified

3252
3253/* All "soft" errors are retryable .. constraint violation are not */
3254static 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
3269static int retry_queries_and_skip(cdb2_hndl_tp *hndl, int num_retry,
3270 int skip_nrows);

Callers 2

cdb2_next_record_intFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected