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

Function ack

cdb2api/cdb2api.c:2756–2764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2754}
2755
2756static inline void ack(cdb2_hndl_tp *hndl)
2757{
2758 hndl->ack = 0;
2759 struct newsqlheader hdr = {.type =
2760 htonl(RESPONSE_HEADER__SQL_RESPONSE_PONG)};
2761
2762 sbuf2write((void *)&hdr, sizeof(hdr), hndl->sb);
2763 sbuf2flush(hndl->sb);
2764}
2765
2766static int cdb2_read_record(cdb2_hndl_tp *hndl, uint8_t **buf, int *len, int *type)
2767{

Callers 2

cdb2_next_record_intFunction · 0.85
cdb2_closeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected