summaryrefslogtreecommitdiff
path: root/sql/wsrep_thd.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-09-06 22:35:45 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2018-09-06 22:35:45 +0300
commit2f4c391958b70ab4be622eb7010d7029363e9529 (patch)
tree1aada0415af36291bce1e47ec0a092c9f27b5a37 /sql/wsrep_thd.cc
parent3bfafd133f9cb9de143ac051de9ed72a67bbc2d9 (diff)
parenta0631e72210931182e950734b73c7a090c637261 (diff)
downloadmariadb-git-2f4c391958b70ab4be622eb7010d7029363e9529.tar.gz
Merge 10.2 into 10.3
Diffstat (limited to 'sql/wsrep_thd.cc')
-rw-r--r--sql/wsrep_thd.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/sql/wsrep_thd.cc b/sql/wsrep_thd.cc
index a83ea4ce1c6..ce6d9688cb3 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;
- }
-}