summaryrefslogtreecommitdiff
path: root/sql/rpl_rli.cc
diff options
context:
space:
mode:
authorKristian Nielsen <knielsen@knielsen-hq.org>2015-06-24 16:53:41 +0200
committerKristian Nielsen <knielsen@knielsen-hq.org>2015-06-24 16:53:41 +0200
commit8af5ab405af6ae7e25b8f424de200eecf94f36f9 (patch)
treeaf65efa51a0b1028fc8b6328f1b4d1fa148b689e /sql/rpl_rli.cc
parenta6087e7dc1ef3561d8189c8db15e9591d0f9b520 (diff)
parentb89de2b2ce84f41351a66d5832c3967b80f9dc31 (diff)
downloadmariadb-git-8af5ab405af6ae7e25b8f424de200eecf94f36f9.tar.gz
Merge MDEV-8354 into 10.0
Diffstat (limited to 'sql/rpl_rli.cc')
-rw-r--r--sql/rpl_rli.cc19
1 files changed, 12 insertions, 7 deletions
diff --git a/sql/rpl_rli.cc b/sql/rpl_rli.cc
index 9bd0ca55b01..3207c858b20 100644
--- a/sql/rpl_rli.cc
+++ b/sql/rpl_rli.cc
@@ -1768,6 +1768,13 @@ void rpl_group_info::cleanup_context(THD *thd, bool error)
rli->clear_flag(Relay_log_info::IN_STMT);
rli->clear_flag(Relay_log_info::IN_TRANSACTION);
}
+
+ /*
+ Ensure we always release the domain for others to process, when using
+ --gtid-ignore-duplicates.
+ */
+ if (gtid_ignore_duplicate_state != GTID_DUPLICATE_NULL)
+ rpl_global_gtid_slave_state.release_domain_owner(this);
}
/*
@@ -1777,13 +1784,6 @@ void rpl_group_info::cleanup_context(THD *thd, bool error)
thd->variables.option_bits&= ~OPTION_RELAXED_UNIQUE_CHECKS;
/*
- Ensure we always release the domain for others to process, when using
- --gtid-ignore-duplicates.
- */
- if (gtid_ignore_duplicate_state != GTID_DUPLICATE_NULL)
- rpl_global_gtid_slave_state.release_domain_owner(this);
-
- /*
Reset state related to long_find_row notes in the error log:
- timestamp
- flag that decides whether the slave prints or not
@@ -1791,6 +1791,11 @@ void rpl_group_info::cleanup_context(THD *thd, bool error)
reset_row_stmt_start_timestamp();
unset_long_find_row_note_printed();
+ DBUG_EXECUTE_IF("inject_sleep_gtid_100_x_x", {
+ if (current_gtid.domain_id == 100)
+ my_sleep(50000);
+ };);
+
DBUG_VOID_RETURN;
}