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

Function clearClientSideRow

db/sqlglue.c:11955–11971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11953}
11954
11955void clearClientSideRow(struct sqlclntstate *clnt)
11956{
11957 if (!clnt) {
11958 struct sql_thread *thd = pthread_getspecific(query_info_key);
11959 if (!thd) {
11960 logmsg(LOGMSG_FATAL, "%s: running in non sql thread!n", __func__);
11961 abort();
11962 }
11963 clnt = thd->clnt;
11964 }
11965 clnt->keyDdl = 0ULL;
11966 clnt->nDataDdl = 0;
11967 if (clnt->dataDdl) {
11968 free(clnt->dataDdl);
11969 clnt->dataDdl = NULL;
11970 }
11971}
11972
11973static int queryOverlapsCursors(struct sqlclntstate *clnt, BtCursor *pCur)
11974{

Callers 4

osql_clean_sqlclntstateFunction · 0.85
_views_create_triggersFunction · 0.85
_views_destroy_triggersFunction · 0.85
sqlite_doneFunction · 0.85

Calls 2

freeFunction · 0.85
logmsgFunction · 0.50

Tested by

no test coverage detected