Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
45c3c715
Commit
45c3c715
authored
Sep 30, 2013
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-4506: Parallel replication. .result file updates + a few comment updates.
parent
976606d0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
mysql-test/suite/innodb/r/group_commit_binlog_pos.result
mysql-test/suite/innodb/r/group_commit_binlog_pos.result
+1
-1
mysql-test/suite/innodb/r/group_commit_binlog_pos_no_optimize_thread.result
...nnodb/r/group_commit_binlog_pos_no_optimize_thread.result
+1
-1
sql/rpl_parallel.cc
sql/rpl_parallel.cc
+4
-3
sql/rpl_parallel.h
sql/rpl_parallel.h
+4
-0
No files found.
mysql-test/suite/innodb/r/group_commit_binlog_pos.result
View file @
45c3c715
...
...
@@ -31,6 +31,6 @@ a
1
2
3
InnoDB: Last MySQL binlog file position 0 92
2
, file name ./master-bin.000001
InnoDB: Last MySQL binlog file position 0 92
6
, file name ./master-bin.000001
SET DEBUG_SYNC= 'RESET';
DROP TABLE t1;
mysql-test/suite/innodb/r/group_commit_binlog_pos_no_optimize_thread.result
View file @
45c3c715
...
...
@@ -32,6 +32,6 @@ a
1
2
3
InnoDB: Last MySQL binlog file position 0 92
2
, file name ./master-bin.000001
InnoDB: Last MySQL binlog file position 0 92
6
, file name ./master-bin.000001
SET DEBUG_SYNC= 'RESET';
DROP TABLE t1;
sql/rpl_parallel.cc
View file @
45c3c715
...
...
@@ -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
;
...
...
sql/rpl_parallel.h
View file @
45c3c715
...
...
@@ -57,6 +57,10 @@ struct rpl_parallel_entry {
uint64
last_committed_sub_id
;
mysql_mutex_t
LOCK_parallel_entry
;
mysql_cond_t
COND_parallel_entry
;
/*
The sub_id of the last event group in this replication domain that was
queued for execution by a worker thread.
*/
uint64
current_sub_id
;
rpl_group_info
*
current_group_info
;
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment