| 5583 | |
| 5584 | |
| 5585 | void reset_thd(MYSQL_THD thd) |
| 5586 | { |
| 5587 | const char *proc_info= thd->proc_info; |
| 5588 | thd->proc_info="reset"; |
| 5589 | close_thread_tables(thd); |
| 5590 | thd->release_transactional_locks(); |
| 5591 | thd->free_items(); |
| 5592 | free_root(thd->mem_root, MYF(MY_KEEP_PREALLOC)); |
| 5593 | thd->proc_info= proc_info; |
| 5594 | } |
| 5595 | |
| 5596 | /** |
| 5597 | This function can be used by storage engine |
no test coverage detected