| 5449 | /* the following three functions are used in background purge threads */ |
| 5450 | |
| 5451 | MYSQL_THD create_thd() |
| 5452 | { |
| 5453 | THD *thd= new THD(next_thread_id()); |
| 5454 | thd->store_globals(); |
| 5455 | thd->set_command(COM_DAEMON); |
| 5456 | thd->system_thread= SYSTEM_THREAD_GENERIC; |
| 5457 | thd->security_ctx->host_or_ip=""; |
| 5458 | server_threads.insert(thd); |
| 5459 | return thd; |
| 5460 | } |
| 5461 | |
| 5462 | void destroy_thd(MYSQL_THD thd) |
| 5463 | { |
no test coverage detected