diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-08-31 11:41:59 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-08-31 12:36:31 +0300 |
commit | 3b5d3cd68e4acceb613822adc66b87f396920e59 (patch) | |
tree | c14aa4b07c06f2688a74eeaa6416fab2c4e85400 /sql/wsrep_thd.cc | |
parent | c933970974bd5a30fb824c1df64c68f1bc403389 (diff) | |
download | mariadb-git-3b5d3cd68e4acceb613822adc66b87f396920e59.tar.gz |
Revert MDEV-9519 due to regressions
This reverts commit 75dfd4acb995789ca5f86ccbd361fff9d2797e79.
Diffstat (limited to 'sql/wsrep_thd.cc')
-rw-r--r-- | sql/wsrep_thd.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/sql/wsrep_thd.cc b/sql/wsrep_thd.cc index cd7359160d6..eb26da61282 100644 --- a/sql/wsrep_thd.cc +++ b/sql/wsrep_thd.cc @@ -676,25 +676,3 @@ bool wsrep_thd_has_explicit_locks(THD *thd) assert(thd); return thd->mdl_context.has_explicit_locks(); } - -/* - Get auto increment variables for THD. Use global settings for - applier threads. - */ -extern "C" -void wsrep_thd_auto_increment_variables(THD* thd, - unsigned long long* offset, - unsigned long long* increment) -{ - if (thd->wsrep_exec_mode == REPL_RECV && - thd->wsrep_conflict_state != REPLAYING) - { - *offset= global_system_variables.auto_increment_offset; - *increment= global_system_variables.auto_increment_increment; - } - else - { - *offset= thd->variables.auto_increment_offset; - *increment= thd->variables.auto_increment_increment; - } -} |