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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f3eb1d0e
Commit
f3eb1d0e
authored
Mar 19, 2015
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpl_parallel_multilevel2 can be 1 or 3 binlog groups
parent
54287adc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
mysql-test/suite/rpl/r/rpl_parallel_multilevel2.result
mysql-test/suite/rpl/r/rpl_parallel_multilevel2.result
+8
-8
mysql-test/suite/rpl/t/rpl_parallel_multilevel2.test
mysql-test/suite/rpl/t/rpl_parallel_multilevel2.test
+6
-4
No files found.
mysql-test/suite/rpl/r/rpl_parallel_multilevel2.result
View file @
f3eb1d0e
...
@@ -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
...
...
mysql-test/suite/rpl/t/rpl_parallel_multilevel2.test
View file @
f3eb1d0e
...
@@ -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
...
...
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