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:
committed by
Jan Lindström
parent
e331450f1b
commit
75fe7a5118
@@ -67,7 +67,7 @@ SHOW DATABASES;
|
||||
--error 0
|
||||
SHOW ENGINE InnoDB STATUS;
|
||||
|
||||
--error ER_SP_DOES_NOT_EXIST
|
||||
--error ER_LOCK_WAIT_TIMEOUT
|
||||
SHOW FUNCTION CODE f1;
|
||||
|
||||
--error ER_LOCK_WAIT_TIMEOUT
|
||||
@@ -82,7 +82,7 @@ SHOW INDEX FROM t1;
|
||||
--error ER_LOCK_WAIT_TIMEOUT
|
||||
SHOW OPEN TABLES;
|
||||
|
||||
--error ER_SP_DOES_NOT_EXIST
|
||||
--error ER_LOCK_WAIT_TIMEOUT
|
||||
SHOW PROCEDURE CODE p1;
|
||||
|
||||
--error ER_LOCK_WAIT_TIMEOUT
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user