1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00
This commit is contained in:
Sergei Golubchik
2022-09-24 11:26:08 +02:00
parent b4e7803a6f
commit 0b519a4075
3 changed files with 13 additions and 24 deletions

View File

@@ -6024,11 +6024,7 @@ void THD::get_definer(LEX_USER *definer, bool role)
{
binlog_invoker(role);
#if !defined(MYSQL_CLIENT) && defined(HAVE_REPLICATION)
#ifdef WITH_WSREP
if ((wsrep_applier || slave_thread) && has_invoker())
#else
if (slave_thread && has_invoker())
#endif
if ((IF_WSREP(wsrep_applier, 0) || slave_thread) && has_invoker())
{
definer->user= invoker.user;
definer->host= invoker.host;