| 2475 | */ |
| 2476 | |
| 2477 | void THD::reset_globals() |
| 2478 | { |
| 2479 | mysql_mutex_lock(&LOCK_thd_kill); |
| 2480 | mysys_var= 0; |
| 2481 | mysql_mutex_unlock(&LOCK_thd_kill); |
| 2482 | |
| 2483 | /* Undocking the thread specific data. */ |
| 2484 | set_current_thd(0); |
| 2485 | net.thd= 0; |
| 2486 | } |
| 2487 | |
| 2488 | /* |
| 2489 | Cleanup after query. |
no test coverage detected