1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +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

@ -6114,7 +6114,8 @@ finish:
#ifdef WITH_WSREP
thd->wsrep_consistency_check= NO_CONSISTENCY_CHECK;
WSREP_TO_ISOLATION_END;
if (wsrep_thd_is_toi(thd) || wsrep_thd_is_in_rsu(thd))
wsrep_to_isolation_end(thd);
/*
Force release of transactional locks if not in active MST and wsrep is on.
*/