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

Function send_reset

cdb2api/cdb2api.c:2163–2172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2161}
2162
2163static int send_reset(SBUF2 *sb)
2164{
2165 int rc = 0;
2166 struct newsqlheader hdr = {.type = ntohl(CDB2_REQUEST_TYPE__RESET)};
2167 rc = sbuf2fwrite((char *)&hdr, sizeof(hdr), 1, sb);
2168 if (rc != 1) {
2169 return -1;
2170 }
2171 return 0;
2172}
2173
2174static int try_ssl(cdb2_hndl_tp *hndl, SBUF2 *sb)
2175{

Callers 2

newsql_connectFunction · 0.70
comdb2db_get_dbhostsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected