summaryrefslogtreecommitdiff
path: root/sql/sql_help.h
diff options
context:
space:
mode:
authorKristian Nielsen <knielsen@knielsen-hq.org>2016-09-20 15:30:57 +0200
committerKristian Nielsen <knielsen@knielsen-hq.org>2016-10-14 22:44:40 +0200
commit50f19ca8099994e992e1b411c7c05287855a7bdd (patch)
tree7616768e8db48e1a83c8f20699e717731c7f741f /sql/sql_help.h
parent7e0c9de86484815b6e014ce3ad3e3a9b74ec0ce0 (diff)
downloadmariadb-git-50f19ca8099994e992e1b411c7c05287855a7bdd.tar.gz
Remove unnecessary global mutex in parallel replication.
The function apply_event_and_update_pos() is called with the rli->data_lock mutex held. However, there seems to be nothing in the function actually needing the mutex to be held. Certainly not in the parallel replication case, where sql_slave_skip_counter is always 0 since the non-zero case is handled by the SQL driver thread. So this patch makes parallel replication use a variant of apply_event_and_update_pos() without the need to take the rli->data_lock mutex. This avoids one contended global mutex for each event executed, which might improve performance on CPU-bound workloads somewhat. Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
Diffstat (limited to 'sql/sql_help.h')
0 files changed, 0 insertions, 0 deletions