1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-9609 : wsrep_debug only logs DDL information on originating node

Added DDL logging to applier and replaying also so that
DDL is logged on other than originating node.

wsrep.h
	Removed wsrep_thd_is_local conditions and cleaned up
	the macros. Removed WSREP_TO_ISOLATION_END.

Event_job_data::execute
change_password
acl_set_default_role
mysql_execute_command
	Replaced macro by function call

wsrep_to_isolation_begin
wsrep_to_isolation_end
	If execution is not local log DDL-information when
	wsrep_debug is enabled

No new tests required as current regression setting is
already testing these code paths.
This commit is contained in:
Jan Lindström
2021-05-14 13:25:03 +03:00
parent 1c5ae99194
commit bee1bb056d
5 changed files with 61 additions and 46 deletions

View File

@@ -1545,7 +1545,9 @@ end:
if (sql_command_set)
{
WSREP_TO_ISOLATION_END;
#ifdef WITH_WSREP
wsrep_to_isolation_end(thd);
#endif
thd->lex->sql_command = sql_command_save;
}