mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
Merge branch '10.0-galera' into bb-10.1-serg
This commit is contained in:
@@ -6883,10 +6883,13 @@ void THD::reset_for_next_command()
|
||||
/*
|
||||
Autoinc variables should be adjusted only for locally executed
|
||||
transactions. Appliers and replayers are either processing ROW
|
||||
events or get autoinc variable values from Query_log_event.
|
||||
events or get autoinc variable values from Query_log_event and
|
||||
mysql slave may be processing STATEMENT format events, but he should
|
||||
use autoinc values passed in binlog events, not the values forced by
|
||||
the cluster.
|
||||
*/
|
||||
if (WSREP(thd) && thd->wsrep_exec_mode == LOCAL_STATE &&
|
||||
wsrep_auto_increment_control)
|
||||
!thd->slave_thread && wsrep_auto_increment_control)
|
||||
{
|
||||
thd->variables.auto_increment_offset=
|
||||
global_system_variables.auto_increment_offset;
|
||||
|
Reference in New Issue
Block a user