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
ae0fec9c
Commit
ae0fec9c
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
- removed the off topic mtr test
parent
5edf55be
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
188 deletions
+0
-188
mysql-test/suite/galera/r/galera_binlog_stmt_autoinc.result
mysql-test/suite/galera/r/galera_binlog_stmt_autoinc.result
+0
-74
mysql-test/suite/galera/t/galera_binlog_stmt_autoinc.test
mysql-test/suite/galera/t/galera_binlog_stmt_autoinc.test
+0
-114
No files found.
mysql-test/suite/galera/r/galera_binlog_stmt_autoinc.result
deleted
100644 → 0
View file @
5edf55be
SET GLOBAL wsrep_forced_binlog_format='STATEMENT';
SET GLOBAL wsrep_forced_binlog_format='STATEMENT';
CREATE TABLE t1 (
i int(11) NOT NULL AUTO_INCREMENT,
c char(32) DEFAULT 'dummy_text',
PRIMARY KEY (i)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
insert into t1(i) values(null);
select * from t1;
i c
1 dummy_text
insert into t1(i) values(null), (null), (null);
select * from t1;
i c
1 dummy_text
3 dummy_text
5 dummy_text
7 dummy_text
select * from t1;
i c
1 dummy_text
3 dummy_text
5 dummy_text
7 dummy_text
SET GLOBAL wsrep_forced_binlog_format='none';
SET GLOBAL wsrep_forced_binlog_format='none';
drop table t1;
SET SESSION binlog_format='STATEMENT';
show variables like 'binlog_format';
Variable_name Value
binlog_format STATEMENT
SET GLOBAL wsrep_auto_increment_control='OFF';
SET SESSION auto_increment_increment = 3;
SET SESSION auto_increment_offset = 1;
CREATE TABLE t1 (
i int(11) NOT NULL AUTO_INCREMENT,
c char(32) DEFAULT 'dummy_text',
PRIMARY KEY (i)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
insert into t1(i) values(null);
select * from t1;
i c
1 dummy_text
insert into t1(i) values(null), (null), (null);
select * from t1;
i c
1 dummy_text
4 dummy_text
7 dummy_text
10 dummy_text
select * from t1;
i c
1 dummy_text
4 dummy_text
7 dummy_text
10 dummy_text
SET GLOBAL wsrep_auto_increment_control='ON';
SET SESSION binlog_format='ROW';
show variables like 'binlog_format';
Variable_name Value
binlog_format ROW
show variables like '%auto_increment%';
Variable_name Value
auto_increment_increment 2
auto_increment_offset 1
wsrep_auto_increment_control ON
SET GLOBAL wsrep_auto_increment_control='OFF';
show variables like '%auto_increment%';
Variable_name Value
auto_increment_increment 3
auto_increment_offset 1
wsrep_auto_increment_control OFF
SET GLOBAL wsrep_auto_increment_control='ON';
drop table t1;
mysql-test/suite/galera/t/galera_binlog_stmt_autoinc.test
deleted
100644 → 0
View file @
5edf55be
##
## Tests the auto-increment with binlog in STATEMENT mode.
##
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
##
## Verify the correct operation of the auto-increment when the binlog
## format artificially set to the 'STATEMENT' (although this mode is
## not recommended in the current version):
##
--
connection
node_2
SET
GLOBAL
wsrep_forced_binlog_format
=
'STATEMENT'
;
--
connection
node_1
SET
GLOBAL
wsrep_forced_binlog_format
=
'STATEMENT'
;
CREATE
TABLE
t1
(
i
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
c
char
(
32
)
DEFAULT
'dummy_text'
,
PRIMARY
KEY
(
i
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
insert
into
t1
(
i
)
values
(
null
);
select
*
from
t1
;
insert
into
t1
(
i
)
values
(
null
),
(
null
),
(
null
);
select
*
from
t1
;
--
connection
node_2
select
*
from
t1
;
SET
GLOBAL
wsrep_forced_binlog_format
=
'none'
;
--
connection
node_1
SET
GLOBAL
wsrep_forced_binlog_format
=
'none'
;
drop
table
t1
;
##
## Check the operation when the automatic control over the auto-increment
## settings is switched off, that is, when we use the increment step and
## the offset specified by the user. In the current session, the binlog
## format is set to 'STATEMENT'. It is important that the values of the
## auto-increment options does not changed on other node - it allows us
## to check the correct transmission of the auto-increment options to
## other nodes:
##
--
disable_warnings
SET
SESSION
binlog_format
=
'STATEMENT'
;
--
enable_warnings
show
variables
like
'binlog_format'
;
SET
GLOBAL
wsrep_auto_increment_control
=
'OFF'
;
SET
SESSION
auto_increment_increment
=
3
;
SET
SESSION
auto_increment_offset
=
1
;
CREATE
TABLE
t1
(
i
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
c
char
(
32
)
DEFAULT
'dummy_text'
,
PRIMARY
KEY
(
i
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
insert
into
t1
(
i
)
values
(
null
);
select
*
from
t1
;
insert
into
t1
(
i
)
values
(
null
),
(
null
),
(
null
);
select
*
from
t1
;
--
connection
node_2
select
*
from
t1
;
--
connection
node_1
##
## Verify the return to automatic calculation of the step
## and offset of the auto-increment:
##
SET
GLOBAL
wsrep_auto_increment_control
=
'ON'
;
SET
SESSION
binlog_format
=
'ROW'
;
show
variables
like
'binlog_format'
;
show
variables
like
'%auto_increment%'
;
##
## Verify the recovery of original user-defined values after
## stopping the automatic control over auto-increment:
##
SET
GLOBAL
wsrep_auto_increment_control
=
'OFF'
;
show
variables
like
'%auto_increment%'
;
##
## Restore original options and drop test table:
##
SET
GLOBAL
wsrep_auto_increment_control
=
'ON'
;
drop
table
t1
;
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