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:
@ -4028,10 +4028,9 @@ end:
|
||||
|
||||
#ifdef WITH_WSREP
|
||||
wsrep_error_label:
|
||||
if (WSREP(thd) && !thd->wsrep_applier)
|
||||
if (WSREP(thd))
|
||||
{
|
||||
WSREP_TO_ISOLATION_END;
|
||||
|
||||
wsrep_to_isolation_end(thd);
|
||||
thd->set_query(query_save);
|
||||
}
|
||||
#endif /* WITH_WSREP */
|
||||
@ -4172,10 +4171,9 @@ int acl_set_default_role(THD *thd, const char *host, const char *user,
|
||||
|
||||
#ifdef WITH_WSREP
|
||||
wsrep_error_label:
|
||||
if (WSREP(thd) && !thd->wsrep_applier)
|
||||
if (WSREP(thd))
|
||||
{
|
||||
WSREP_TO_ISOLATION_END;
|
||||
|
||||
wsrep_to_isolation_end(thd);
|
||||
thd->set_query(query_save);
|
||||
}
|
||||
#endif /* WITH_WSREP */
|
||||
|
Reference in New Issue
Block a user