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

Function cdb2_convert_error_code

cdb2api/cdb2api.c:2910–2920  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2908}
2909
2910static int cdb2_convert_error_code(int rc)
2911{
2912 switch (rc) {
2913 case CDB2__ERROR_CODE__DUP_OLD:
2914 return CDB2ERR_DUPLICATE;
2915 case CDB2__ERROR_CODE__PREPARE_ERROR_OLD:
2916 return CDB2ERR_PREPARE_ERROR;
2917 default:
2918 return rc;
2919 }
2920}
2921
2922static void clear_responses(cdb2_hndl_tp *hndl)
2923{

Callers 3

cdb2_effects_requestFunction · 0.85
cdb2_next_record_intFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected