| 2093 | /** Assign a new value to thd->query and thd->query_id. */ |
| 2094 | |
| 2095 | void THD::set_query_and_id(char *query_arg, uint32 query_length_arg, |
| 2096 | const CHARSET_INFO *cs, |
| 2097 | query_id_t new_query_id) |
| 2098 | { |
| 2099 | mysql_mutex_lock(&LOCK_thd_data); |
| 2100 | set_query_inner(query_arg, query_length_arg, cs); |
| 2101 | query_id= new_query_id; |
| 2102 | mysql_mutex_unlock(&LOCK_thd_data); |
| 2103 | } |
| 2104 | |
| 2105 | /** Assign a new value to thd->query_id. */ |
| 2106 |