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

Function cdb2_errstr

cdb2api/cdb2api.c:5231–5255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5229}
5230
5231const char *cdb2_errstr(cdb2_hndl_tp *hndl)
5232{
5233 char *ret;
5234
5235 if (hndl == NULL)
5236 ret = "unallocated cdb2 handle";
5237 else {
5238 if (hndl->fdb_hndl)
5239 hndl = hndl->fdb_hndl;
5240 if (hndl->firstresponse == NULL) {
5241 ret = hndl->errstr;
5242 } else if (hndl->lastresponse == NULL) {
5243 ret = hndl->firstresponse->error_string;
5244 } else {
5245 ret = hndl->lastresponse->error_string;
5246 }
5247 }
5248
5249 if (!ret)
5250 ret = hndl->errstr;
5251 if (log_calls)
5252 fprintf(stderr, "%p> cdb2_errstr(%p) = \"%s\"\n",
5253 (void *)pthread_self(), hndl, ret ? ret : "NULL");
5254 return ret;
5255}
5256
5257int cdb2_column_type(cdb2_hndl_tp *hndl, int col)
5258{

Callers 15

db_generatorFunction · 0.85
run_statementFunction · 0.85
send_cancel_cnonceFunction · 0.85
comdb2_storeMethod · 0.85
sav_portMethod · 0.85
del_portMethod · 0.85
get_portsMethod · 0.85
last_costFunction · 0.85
replayFunction · 0.85
mainFunction · 0.85
find_match_lsnFunction · 0.85
update_records_thdFunction · 0.85

Calls

no outgoing calls

Tested by 15

masterFunction · 0.68
read_nodeFunction · 0.68
mainFunction · 0.68
updaterFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
test_bind_paramFunction · 0.68
test_bind_indexFunction · 0.68
test_execFunction · 0.68
test_next_recordFunction · 0.68
test_closeFunction · 0.68
test_bind_blob_arrayFunction · 0.68