MCPcopy Create free account
hub / github.com/MariaDB/server / end_delayed_insert

Function end_delayed_insert

sql/sql_insert.cc:3359–3372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3357*/
3358
3359static void end_delayed_insert(THD *thd)
3360{
3361 DBUG_ENTER("end_delayed_insert");
3362 Delayed_insert *di=thd->di;
3363 mysql_mutex_lock(&di->mutex);
3364 DBUG_PRINT("info",("tables in use: %d",di->tables_in_use));
3365 if (!--di->tables_in_use || di->thd.killed)
3366 { // Unlock table
3367 di->status=1;
3368 mysql_cond_signal(&di->cond);
3369 }
3370 mysql_mutex_unlock(&di->mutex);
3371 DBUG_VOID_RETURN;
3372}
3373
3374
3375/* We kill all delayed threads when doing flush-tables */

Callers 2

mysql_insertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected