| 2080 | /** Assign a new value to thd->query. */ |
| 2081 | |
| 2082 | void THD::set_query(const CSET_STRING &string_arg) |
| 2083 | { |
| 2084 | mysql_mutex_lock(&LOCK_thd_data); |
| 2085 | set_query_inner(string_arg); |
| 2086 | mysql_mutex_unlock(&LOCK_thd_data); |
| 2087 | |
| 2088 | #ifdef HAVE_PSI_THREAD_INTERFACE |
| 2089 | PSI_THREAD_CALL(set_thread_info)(query(), query_length()); |
| 2090 | #endif |
| 2091 | } |
| 2092 | |
| 2093 | /** Assign a new value to thd->query and thd->query_id. */ |
| 2094 |