summaryrefslogtreecommitdiff
path: root/sql/rpl_parallel.cc
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2013-07-05 00:26:15 +0200
committerunknown <knielsen@knielsen-hq.org>2013-07-05 00:26:15 +0200
commite654be3865d7c8a6ad6339b2de2c45f02c9f7981 (patch)
tree740640ef61b1d95ded38223defb3ef27483ff89d /sql/rpl_parallel.cc
parentb5a496a777fd5c6f50a25cde852b86c74d18ee7a (diff)
downloadmariadb-git-e654be3865d7c8a6ad6339b2de2c45f02c9f7981.tar.gz
MDEV-4506: Parallel replication: Intermediate commit.
Impement options --binlog-commit-wait-count and --binlog-commit-wait-usec. These options permit the DBA to deliberately increase latency of an individual commit to get more transactions in each binlog group commit. This increases the opportunity for parallel replication on the slave, and can also decrease I/O load on the master. The options also make it easier to test the parallel replication with mysql-test-run.
Diffstat (limited to 'sql/rpl_parallel.cc')
-rw-r--r--sql/rpl_parallel.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/rpl_parallel.cc b/sql/rpl_parallel.cc
index e5c700041ef..8f97c19e5ad 100644
--- a/sql/rpl_parallel.cc
+++ b/sql/rpl_parallel.cc
@@ -210,8 +210,7 @@ handle_rpl_parallel_thread(void *arg)
if (entry->last_committed_sub_id < event_gtid_sub_id)
{
entry->last_committed_sub_id= event_gtid_sub_id;
- if (entry->need_signal)
- mysql_cond_broadcast(&entry->COND_parallel_entry);
+ mysql_cond_broadcast(&entry->COND_parallel_entry);
}
mysql_mutex_unlock(&entry->LOCK_parallel_entry);