mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge mysql-next-mr (revno 2942) --> mysql-next-mr-marc
This commit is contained in:
@ -385,6 +385,8 @@ char *thd_security_context(THD *thd, char *buffer, unsigned int length,
|
||||
str.append(proc_info);
|
||||
}
|
||||
|
||||
pthread_mutex_lock(&thd->LOCK_thd_data);
|
||||
|
||||
if (thd->query())
|
||||
{
|
||||
if (max_query_len < 1)
|
||||
@ -394,6 +396,9 @@ char *thd_security_context(THD *thd, char *buffer, unsigned int length,
|
||||
str.append('\n');
|
||||
str.append(thd->query(), len);
|
||||
}
|
||||
|
||||
pthread_mutex_unlock(&thd->LOCK_thd_data);
|
||||
|
||||
if (str.c_ptr_safe() == buffer)
|
||||
return buffer;
|
||||
|
||||
|
Reference in New Issue
Block a user