| 1684 | */ |
| 1685 | |
| 1686 | void THD::reset_db(const LEX_CSTRING *new_db) |
| 1687 | { |
| 1688 | if (new_db->str != db.str || new_db->length != db.length) |
| 1689 | { |
| 1690 | if (db.str != 0) |
| 1691 | DBUG_PRINT("QQ", ("Overwriting: %p", db.str)); |
| 1692 | mysql_mutex_lock(&LOCK_thd_data); |
| 1693 | db= *new_db; |
| 1694 | mysql_mutex_unlock(&LOCK_thd_data); |
| 1695 | PSI_CALL_set_thread_db(db.str, (int) db.length); |
| 1696 | } |
| 1697 | } |
| 1698 | |
| 1699 | |
| 1700 | /* Do operations that may take a long time */ |
no outgoing calls
no test coverage detected