summaryrefslogtreecommitdiff
path: root/sql/rpl_rli.h
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2013-09-13 15:09:57 +0200
committerunknown <knielsen@knielsen-hq.org>2013-09-13 15:09:57 +0200
commitd107bdaa01ad34b1afb4542b981b9b19af499f7b (patch)
tree094a00715ad2a2895364eac2356a3abf798e3c53 /sql/rpl_rli.h
parent13fddb32dec20bfea058281dcf0e780ca02d5402 (diff)
downloadmariadb-git-d107bdaa01ad34b1afb4542b981b9b19af499f7b.tar.gz
MDEV-4506, parallel replication.
Some after-review fixes.
Diffstat (limited to 'sql/rpl_rli.h')
-rw-r--r--sql/rpl_rli.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/sql/rpl_rli.h b/sql/rpl_rli.h
index 91c5c65d33b..4d954d1c8aa 100644
--- a/sql/rpl_rli.h
+++ b/sql/rpl_rli.h
@@ -422,7 +422,7 @@ public:
*/
void stmt_done(my_off_t event_log_pos,
time_t event_creation_time, THD *thd,
- struct rpl_group_info *rgi);
+ rpl_group_info *rgi);
/**
@@ -521,10 +521,14 @@ private:
/*
This is data for various state needed to be kept for the processing of
- one event group in the SQL thread.
+ one event group (transaction) during replication.
- For single-threaded replication it is linked from the RLI, for parallel
- replication it is linked into each event group being executed in parallel.
+ In single-threaded replication, there will be one global rpl_group_info and
+ one global Relay_log_info per master connection. They will be linked
+ together.
+
+ In parallel replication, there will be one rpl_group_info object for
+ each running thd. All rpl_group_info will share the same Relay_log_info.
*/
struct rpl_group_info
{
@@ -555,7 +559,7 @@ struct rpl_group_info
for the wrong commit).
*/
uint64 wait_commit_sub_id;
- struct rpl_group_info *wait_commit_group_info;
+ rpl_group_info *wait_commit_group_info;
/*
If non-zero, the event group must wait for this sub_id to be committed
before the execution of the event group is allowed to start.