mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@@ -91,10 +91,11 @@ static bool refresh_provider_options()
|
||||
}
|
||||
}
|
||||
|
||||
static void wsrep_set_wsrep_on()
|
||||
void wsrep_set_wsrep_on()
|
||||
{
|
||||
WSREP_ON_= global_system_variables.wsrep_on && wsrep_provider &&
|
||||
strcmp(wsrep_provider, WSREP_NONE);
|
||||
WSREP_PROVIDER_EXISTS_= wsrep_provider &&
|
||||
strncasecmp(wsrep_provider, WSREP_NONE, FN_REFLEN);
|
||||
WSREP_ON_= global_system_variables.wsrep_on && WSREP_PROVIDER_EXISTS_;
|
||||
}
|
||||
|
||||
/* This is intentionally declared as a weak global symbol, so that
|
||||
@@ -149,6 +150,13 @@ bool wsrep_on_check(sys_var *self, THD* thd, set_var* var)
|
||||
" innodb_lock_schedule_algorithm=FCFS and restart.", MYF(0));
|
||||
return true;
|
||||
}
|
||||
|
||||
if (thd->in_active_multi_stmt_transaction())
|
||||
{
|
||||
my_error(ER_CANT_DO_THIS_DURING_AN_TRANSACTION, MYF(0));
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user