mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-24312 master_host has 60 character limit, increase to 255 bytes
Also increase user name up to 128. The work was started by Rucha Deodhar <rucha.deodhar@mariadb.com>, contains audit plugin fixes by Alexey Botchkov <holyfoot@askmonty.org>.
This commit is contained in:
@ -4720,6 +4720,19 @@ extern "C" void thd_create_random_password(MYSQL_THD thd,
|
||||
}
|
||||
|
||||
|
||||
extern "C" const char *thd_priv_host(MYSQL_THD thd, size_t *length)
|
||||
{
|
||||
const Security_context *sctx= thd->security_ctx;
|
||||
if (!sctx)
|
||||
{
|
||||
*length= 0;
|
||||
return NULL;
|
||||
}
|
||||
*length= strlen(sctx->priv_host);
|
||||
return sctx->priv_host;
|
||||
}
|
||||
|
||||
|
||||
#ifdef INNODB_COMPATIBILITY_HOOKS
|
||||
|
||||
/** open a table and add it to thd->open_tables
|
||||
|
Reference in New Issue
Block a user