mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
WL#2787 (part 2, ver 3 (merged)) changed securety context switching
libmysqld/lib_sql.cc: changed securety context switching mysql-test/r/rpl_sp.result: now it show real information from changed security context of SP (checked) sql/ha_innodb.cc: changed securety context switching sql/item.cc: changed securety context switching sql/item_func.cc: changed securety context switching sql/item_strfunc.cc: changed securety context switching sql/log.cc: changed securety context switching sql/mysql_priv.h: changed securety context switching sql/mysqld.cc: changed securety context switching sql/repl_failsafe.cc: changed securety context switching sql/set_var.cc: changed securety context switching sql/slave.cc: changed securety context switching sql/sp.cc: changed securety context switching sql/sp_head.cc: changed securety context switching in case of inability to switch context we return error now sql/sp_head.h: changed securety context switching sql/sql_acl.cc: changed securety context switching sql/sql_acl.h: changed securety context switching sql/sql_base.cc: changed securety context switching sql/sql_class.cc: changed securety context switching sql/sql_class.h: changed securety context switching sql/sql_db.cc: changed securety context switching sql/sql_insert.cc: changed securety context switching sql/sql_parse.cc: changed securety context switching sql/sql_show.cc: changed securety context switching sql/sql_trigger.cc: changed securety context switching sql/sql_view.cc: changed securety context switching sql/sql_yacc.yy: changed securety context switching
This commit is contained in:
parent
fbe338f4b0
commit
84f029a448
27 changed files with 449 additions and 379 deletions
|
|
@ -563,25 +563,29 @@ innobase_mysql_print_thd(
|
|||
use the default max length */
|
||||
{
|
||||
const THD* thd;
|
||||
const st_security_context *sctx;
|
||||
const char* s;
|
||||
|
||||
thd = (const THD*) input_thd;
|
||||
/* We probably want to have original user as part of debug output. */
|
||||
sctx = &thd->main_security_ctx;
|
||||
|
||||
|
||||
fprintf(f, "MySQL thread id %lu, query id %lu",
|
||||
thd->thread_id, (ulong) thd->query_id);
|
||||
if (thd->host) {
|
||||
if (sctx->host) {
|
||||
putc(' ', f);
|
||||
fputs(thd->host, f);
|
||||
fputs(sctx->host, f);
|
||||
}
|
||||
|
||||
if (thd->ip) {
|
||||
if (sctx->ip) {
|
||||
putc(' ', f);
|
||||
fputs(thd->ip, f);
|
||||
fputs(sctx->ip, f);
|
||||
}
|
||||
|
||||
if (thd->user) {
|
||||
if (sctx->user) {
|
||||
putc(' ', f);
|
||||
fputs(thd->user, f);
|
||||
fputs(sctx->user, f);
|
||||
}
|
||||
|
||||
if ((s = thd->proc_info)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue