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

Function cdb2_next_callback

cdb2api/cdb2api.c:6918–6932  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6916}
6917
6918static cdb2_event *cdb2_next_callback(cdb2_hndl_tp *hndl, cdb2_event_type type,
6919 cdb2_event *e)
6920{
6921 if (e != NULL)
6922 e = e->next;
6923 else {
6924 /* Refresh once on new iteration. */
6925 if (refresh_gbl_events_on_hndl(hndl) != 0)
6926 return NULL;
6927 e = hndl->events->next;
6928 }
6929 for (; e != NULL && !(e->types & type); e = e->next)
6930 ;
6931 return e;
6932}
6933
6934static char *stringify_fingerprint(char *dst, uint8_t *val, int len)
6935{

Callers 12

cdb2_tcpconnecth_toFunction · 0.85
newsql_connect_via_fdFunction · 0.85
newsql_connectFunction · 0.85
cdb2portmux_getFunction · 0.85
cdb2_read_recordFunction · 0.85
cdb2_send_queryFunction · 0.85
cdb2_next_recordFunction · 0.85
cdb2_closeFunction · 0.85
cdb2_run_statement_typedFunction · 0.85
cdb2_dbinfo_queryFunction · 0.85
cdb2_get_dbhostsFunction · 0.85
cdb2_openFunction · 0.85

Calls 1

Tested by

no test coverage detected