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
5edf55be
Commit
5edf55be
authored
Feb 19, 2016
by
sjaakola
Committed by
Nirbhay Choubey
Aug 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refs: MW-248
- fixed the test case and extended with autoinc modification is master side
parent
df96eb5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
15 deletions
+43
-15
mysql-test/suite/galera/r/galera_as_slave_autoinc.result
mysql-test/suite/galera/r/galera_as_slave_autoinc.result
+32
-9
mysql-test/suite/galera/t/galera_as_slave_autoinc.test
mysql-test/suite/galera/t/galera_as_slave_autoinc.test
+11
-6
No files found.
mysql-test/suite/galera/r/galera_as_slave_autoinc.result
View file @
5edf55be
...
...
@@ -18,13 +18,29 @@ i c
2 dummy_text
3 dummy_text
4 dummy_text
SET SESSION auto_increment_increment=7;
insert into t1(i) values(null), (null), (null);
SET SESSION auto_increment_offset=5;
insert into t1(i) values(null), (null), (null);
select * from t1;
i c
1 dummy_text
2 dummy_text
3 dummy_text
4 dummy_text
8 dummy_text
15 dummy_text
22 dummy_text
33 dummy_text
40 dummy_text
47 dummy_text
show variables like 'binlog_format';
Variable_name Value
binlog_format STATEMENT
show variables like '%auto_increment%';
Variable_name Value
auto_increment_increment
1
auto_increment_offset
1
auto_increment_increment
7
auto_increment_offset
5
wsrep_auto_increment_control ON
select * from t1;
i c
...
...
@@ -32,30 +48,37 @@ i c
2 dummy_text
3 dummy_text
4 dummy_text
8 dummy_text
15 dummy_text
22 dummy_text
33 dummy_text
40 dummy_text
47 dummy_text
show variables like 'binlog_format';
Variable_name Value
binlog_format ROW
show variables like '
%auto_increment%
';
show variables like '
auto_increment_increment
';
Variable_name Value
auto_increment_increment 2
auto_increment_offset 1
wsrep_auto_increment_control ON
select * from t1;
i c
1 dummy_text
2 dummy_text
3 dummy_text
4 dummy_text
8 dummy_text
15 dummy_text
22 dummy_text
33 dummy_text
40 dummy_text
47 dummy_text
show variables like 'binlog_format';
Variable_name Value
binlog_format ROW
show variables like '
%auto_increment%
';
show variables like '
auto_increment_increment
';
Variable_name Value
auto_increment_increment 2
auto_increment_offset 2
wsrep_auto_increment_control ON
DROP TABLE t1;
STOP SLAVE;
RESET SLAVE ALL;
SET GLOBAL binlog_format='ROW';
RESET MASTER;
mysql-test/suite/galera/t/galera_as_slave_autoinc.test
View file @
5edf55be
...
...
@@ -40,6 +40,14 @@ insert into t1(i) values(null), (null), (null);
select
*
from
t1
;
SET
SESSION
auto_increment_increment
=
7
;
insert
into
t1
(
i
)
values
(
null
),
(
null
),
(
null
);
SET
SESSION
auto_increment_offset
=
5
;
insert
into
t1
(
i
)
values
(
null
),
(
null
),
(
null
);
select
*
from
t1
;
show
variables
like
'binlog_format'
;
show
variables
like
'%auto_increment%'
;
...
...
@@ -47,20 +55,20 @@ show variables like '%auto_increment%';
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
TABLES
WHERE
TABLE_NAME
=
't1'
;
--
source
include
/
wait_condition
.
inc
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
4
FROM
t1
;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
10
FROM
t1
;
--
source
include
/
wait_condition
.
inc
select
*
from
t1
;
show
variables
like
'binlog_format'
;
show
variables
like
'
%auto_increment%
'
;
show
variables
like
'
auto_increment_increment
'
;
--
connect
node_3
,
127.0
.
0.1
,
root
,
,
test
,
$NODE_MYPORT_3
select
*
from
t1
;
show
variables
like
'binlog_format'
;
show
variables
like
'
%auto_increment%
'
;
show
variables
like
'
auto_increment_increment
'
;
--
connection
node_1
DROP
TABLE
t1
;
...
...
@@ -73,7 +81,4 @@ STOP SLAVE;
RESET
SLAVE
ALL
;
--
connection
node_1
SET
GLOBAL
binlog_format
=
'ROW'
;
RESET
MASTER
;
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