1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00

MDEV-41505 : Sql_cmd_show_routine_code::execute does not call wsrep_sync_wait()

There was no wsrep_sync_wait on Sql_cmd_show_routine_code::execute.
This commit is contained in:
Jan Lindström
2026-10-13 14:07:19 +03:00
committed by Jan Lindström
parent e331450f1b
commit 75fe7a5118
2 changed files with 7 additions and 2 deletions

View File

@@ -3284,6 +3284,11 @@ static bool prepare_db_action(THD *thd, privilege_t want_access,
bool Sql_cmd_show_routine_code::execute(THD *thd)
{
sp_head *sp;
#ifdef WITH_WSREP
if (WSREP_CLIENT(thd) &&
wsrep_sync_wait(thd, WSREP_SYNC_WAIT_BEFORE_SHOW))
return true;
#endif /* WITH_WSREP */
if (m_handler->sp_cache_routine(thd, m_name, &sp))
return true;
if (!sp || sp->show_routine_code(thd))