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
d61ed5dd
Commit
d61ed5dd
authored
Apr 06, 2018
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-13549: Galera test failures
Fix test case galera.pxc-421 to reset auto_increment_offset correctly.
parent
1479273c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
mysql-test/suite/galera/r/pxc-421.result
mysql-test/suite/galera/r/pxc-421.result
+0
-2
mysql-test/suite/galera/t/pxc-421.test
mysql-test/suite/galera/t/pxc-421.test
+7
-3
No files found.
mysql-test/suite/galera/r/pxc-421.result
View file @
d61ed5dd
...
...
@@ -26,7 +26,6 @@ SET GLOBAL wsrep_slave_threads = 1;
SELECT COUNT(*) FROM t1;
COUNT(*)
16
SET GLOBAL auto_increment_offset = 2;
SELECT COUNT(*) FROM t1;
COUNT(*)
15
...
...
@@ -35,4 +34,3 @@ Variable_name Value
wsrep_slave_threads 12
SET GLOBAL wsrep_slave_threads = 1;
DROP TABLE t1;
SET GLOBAL auto_increment_offset = 1;
mysql-test/suite/galera/t/pxc-421.test
View file @
d61ed5dd
...
...
@@ -6,6 +6,11 @@
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
# Save original auto_increment_offset values.
--
let
$node_1
=
node_1
--
let
$node_2
=
node_2
--
source
include
/
auto_increment_offset_save
.
inc
--
connection
node_1
--
let
$wsrep_slave_1
=
`SELECT @@wsrep_slave_threads`
set
GLOBAL
wsrep_slave_threads
=
26
;
...
...
@@ -54,12 +59,11 @@ show global variables like 'wsrep_slave_threads';
--
eval
SET
GLOBAL
wsrep_slave_threads
=
$wsrep_slave_2
SELECT
COUNT
(
*
)
FROM
t1
;
SET
GLOBAL
auto_increment_offset
=
2
;
--
connection
node_1
SELECT
COUNT
(
*
)
FROM
t1
;
show
global
variables
like
'wsrep_slave_threads'
;
--
eval
SET
GLOBAL
wsrep_slave_threads
=
$wsrep_slave_1
DROP
TABLE
t1
;
SET
GLOBAL
auto_increment_offset
=
1
;
--
source
include
/
auto_increment_offset_restore
.
inc
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