| 3357 | */ |
| 3358 | |
| 3359 | static 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 */ |
no outgoing calls
no test coverage detected