mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge 10.5 -> 10.6
Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
This commit is contained in:
@@ -832,8 +832,12 @@ do_retry:
|
||||
err= 0;
|
||||
errmsg= NULL;
|
||||
#ifdef WITH_WSREP
|
||||
thd->wsrep_cs().reset_error();
|
||||
WSREP_DEBUG("retrying async replication event");
|
||||
DBUG_EXECUTE_IF("sync.wsrep_retry_event_group", {
|
||||
const char act[]= "now "
|
||||
"SIGNAL sync.wsrep_retry_event_group_reached "
|
||||
"WAIT_FOR signal.wsrep_retry_event_group";
|
||||
debug_sync_set_action(thd, STRING_WITH_LEN(act));
|
||||
};);
|
||||
#endif /* WITH_WSREP */
|
||||
|
||||
/*
|
||||
@@ -983,15 +987,20 @@ do_retry:
|
||||
*/
|
||||
thd->reset_killed();
|
||||
#ifdef WITH_WSREP
|
||||
if (wsrep_before_command(thd))
|
||||
if (WSREP(thd))
|
||||
{
|
||||
WSREP_WARN("Parallel slave worker failed at wsrep_before_command() hook");
|
||||
err= 1;
|
||||
goto err;
|
||||
/* Exec after statement hook to make sure that the failed transaction
|
||||
* gets cleared and reset error state. */
|
||||
if (wsrep_after_statement(thd))
|
||||
{
|
||||
WSREP_WARN("Parallel slave worker failed at wsrep_after_statement() hook");
|
||||
err= 1;
|
||||
goto err;
|
||||
}
|
||||
thd->wsrep_cs().reset_error();
|
||||
wsrep_start_trx_if_not_started(thd);
|
||||
WSREP_DEBUG("parallel slave retry, after trx start");
|
||||
}
|
||||
wsrep_start_trx_if_not_started(thd);
|
||||
WSREP_DEBUG("parallel slave retry, after trx start");
|
||||
|
||||
#endif /* WITH_WSREP */
|
||||
strmake_buf(log_name, ir->name);
|
||||
if ((fd= open_binlog(&rlog, log_name, &errmsg)) <0)
|
||||
|
Reference in New Issue
Block a user