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

Function lua_begin_step

lua/sp.c:2259–2270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2257}
2258
2259static void lua_begin_step(struct sqlclntstate *clnt, SP sp,
2260 sqlite3_stmt *pStmt)
2261{
2262 int64_t time = comdb2_time_epochms();
2263 Vdbe *pVdbe = (Vdbe*)pStmt;
2264
2265 if ((sp != NULL) && (pVdbe != NULL)) {
2266 save_thd_cost_and_reset(sp->thd, pVdbe);
2267 pVdbe->luaStartTime = time;
2268 pVdbe->luaRows = 0;
2269 }
2270}
2271
2272static void lua_another_step(struct sqlclntstate *clnt,
2273 sqlite3_stmt *pStmt, int rc)

Callers 8

create_temp_tableFunction · 0.85
dbtable_insertFunction · 0.85
dbtable_copyfromFunction · 0.85
setup_first_sqlite_stepFunction · 0.85
dbstmt_execFunction · 0.85
dbstmt_emitFunction · 0.85
db_csvcopyFunction · 0.85
db_execFunction · 0.85

Calls 2

save_thd_cost_and_resetFunction · 0.85
comdb2_time_epochmsFunction · 0.50

Tested by

no test coverage detected