Commit f3eb1d0e authored by Daniel Black's avatar Daniel Black

rpl_parallel_multilevel2 can be 1 or 3 binlog groups

parent 54287adc
...@@ -47,18 +47,18 @@ include/sync_with_master_gtid.inc ...@@ -47,18 +47,18 @@ include/sync_with_master_gtid.inc
SELECT * FROM t1 ORDER BY a; SELECT * FROM t1 ORDER BY a;
a b a b
1 10 1 10
SELECT variable_value - @group_commits FROM information_schema.global_status SELECT IF((commits.variable_value - @group_commits) IN (1,3), "OK", "Not 1 or 3 groups"),
WHERE variable_name = 'binlog_group_commits'; ((commits.variable_value - @group_commits) - (reason_usec.variable_value - @group_commit_reason_usec)) as diff
variable_value - @group_commits FROM information_schema.global_status commits
3 JOIN information_schema.global_status reason_usec
WHERE commits.variable_name = 'binlog_group_commits'
AND reason_usec.variable_name = 'binlog_group_commit_reason_usec';
IF((commits.variable_value - @group_commits) IN (1,3), "OK", "Not 1 or 3 groups") diff
OK 0
SELECT variable_value - @group_commit_reason_count FROM information_schema.global_status SELECT variable_value - @group_commit_reason_count FROM information_schema.global_status
WHERE variable_name = 'binlog_group_commit_reason_count'; WHERE variable_name = 'binlog_group_commit_reason_count';
variable_value - @group_commit_reason_count variable_value - @group_commit_reason_count
0 0
SELECT variable_value - @group_commit_reason_usec FROM information_schema.global_status
WHERE variable_name = 'binlog_group_commit_reason_usec';
variable_value - @group_commit_reason_usec
3
SELECT variable_value - @group_commit_reason_transaction FROM information_schema.global_status SELECT variable_value - @group_commit_reason_transaction FROM information_schema.global_status
WHERE variable_name = 'binlog_group_commit_reason_transaction'; WHERE variable_name = 'binlog_group_commit_reason_transaction';
variable_value - @group_commit_reason_transaction variable_value - @group_commit_reason_transaction
......
...@@ -76,12 +76,14 @@ SELECT * FROM t1 ORDER BY a; ...@@ -76,12 +76,14 @@ SELECT * FROM t1 ORDER BY a;
# Measure status(es) # Measure status(es)
--connection server_2 --connection server_2
SELECT variable_value - @group_commits FROM information_schema.global_status SELECT IF((commits.variable_value - @group_commits) IN (1,3), "OK", "Not 1 or 3 groups"),
WHERE variable_name = 'binlog_group_commits'; ((commits.variable_value - @group_commits) - (reason_usec.variable_value - @group_commit_reason_usec)) as diff
FROM information_schema.global_status commits
JOIN information_schema.global_status reason_usec
WHERE commits.variable_name = 'binlog_group_commits'
AND reason_usec.variable_name = 'binlog_group_commit_reason_usec';
SELECT variable_value - @group_commit_reason_count FROM information_schema.global_status SELECT variable_value - @group_commit_reason_count FROM information_schema.global_status
WHERE variable_name = 'binlog_group_commit_reason_count'; WHERE variable_name = 'binlog_group_commit_reason_count';
SELECT variable_value - @group_commit_reason_usec FROM information_schema.global_status
WHERE variable_name = 'binlog_group_commit_reason_usec';
SELECT variable_value - @group_commit_reason_transaction FROM information_schema.global_status SELECT variable_value - @group_commit_reason_transaction FROM information_schema.global_status
WHERE variable_name = 'binlog_group_commit_reason_transaction'; WHERE variable_name = 'binlog_group_commit_reason_transaction';
SELECT variable_value - @group_commit_reason_immediate FROM information_schema.global_status SELECT variable_value - @group_commit_reason_immediate FROM information_schema.global_status
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment