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

Function exec_thread

lua/sp.c:7344–7357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7342}
7343
7344void exec_thread(struct sqlthdstate *thd, struct sqlclntstate *clnt)
7345{
7346 clnt->done_cb = thread_dispatch_finished;
7347 SP sp = clnt->sp;
7348 Lua L = sp->lua;
7349 dbthread_type *dbthd = sp->dbthd;
7350 dbthd->status = THREAD_STATUS_RUNNING;
7351 get_curtran(thedb->bdb_env, clnt);
7352 exec_thread_int(thd, clnt);
7353 lua_gc(L, LUA_GCCOLLECT, 0);
7354 drop_temp_tables(clnt->sp);
7355 free_tmptbls(clnt->sp);
7356 put_curtran(thedb->bdb_env, clnt);
7357}
7358
7359int exec_procedure(struct sqlthdstate *thd, struct sqlclntstate *clnt, char **err)
7360{

Callers 1

Calls 6

get_curtranFunction · 0.85
exec_thread_intFunction · 0.85
lua_gcFunction · 0.85
drop_temp_tablesFunction · 0.85
free_tmptblsFunction · 0.85
put_curtranFunction · 0.85

Tested by

no test coverage detected