summaryrefslogtreecommitdiff
path: root/sql/rpl_parallel.cc
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2013-09-30 10:41:41 +0200
committerunknown <knielsen@knielsen-hq.org>2013-09-30 10:41:41 +0200
commit45c3c71513b68b8de79f3e0a5e9779e7e8021716 (patch)
tree30587643b84a1f40d73ff1ad52512fe9ea3ce6d3 /sql/rpl_parallel.cc
parent976606d0318465e40670535f6353849d83d1c78f (diff)
downloadmariadb-git-45c3c71513b68b8de79f3e0a5e9779e7e8021716.tar.gz
MDEV-4506: Parallel replication. .result file updates + a few comment updates.
Diffstat (limited to 'sql/rpl_parallel.cc')
-rw-r--r--sql/rpl_parallel.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/rpl_parallel.cc b/sql/rpl_parallel.cc
index ce3170bb774..6c8c5b5c3fa 100644
--- a/sql/rpl_parallel.cc
+++ b/sql/rpl_parallel.cc
@@ -647,11 +647,12 @@ rpl_parallel::do_event(rpl_group_info *serial_rgi, Log_event *ev)
still executing the first ones, to be able to start executing a large
event group without having to wait for the end to be fetched from the
master. And we continue to queue up more events after the first group,
- avoiding the overhead of worker threads constantly entering and
- leaving the worker thread free list.
+ so that we can continue to process subsequent parts of the relay log in
+ parallel without having to wait for previous long-running events to
+ complete.
But if the worker thread is idle at any point, it may return to the
- idle list or be servicing a different request. So check this, and
+ idle list or start servicing a different request. So check this, and
allocate a new thread if the old one is no longer processing for us.
*/
cur_thread= e->rpl_thread;