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
6c7910ee
Commit
6c7910ee
authored
Sep 12, 2018
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test galera#505 galera library version check.
Test requires galera library version 25.3.24.
parent
e63b84b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
mysql-test/suite/galera/t/galera#505.test
mysql-test/suite/galera/t/galera#505.test
+8
-14
No files found.
mysql-test/suite/galera/t/galera#505.test
View file @
6c7910ee
...
...
@@ -2,22 +2,16 @@
--
source
include
/
galera_cluster
.
inc
--
disable_query_log
select
CAST
(
REGEXP_REPLACE
(
variable_value
,
'^(\\d+)\\.(\\d+)\\.(\\d+)(r\\d+)'
,
'\\3'
)
AS
UNSIGNED
)
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
LIKE
'wsrep_provider_version'
INTO
@
GALERA_VERSION
;
# Make sure that the test is operating on the right version of galera library.
--
let
$galera_version
=
24
eval
SET
@
REQUIRED_GALERA_VERSION
=
'$galera_version'
;
SELECT
@
GALERA_VERSION
,
@
REQUIRED_GALERA_VERSION
;
--
connection
node_1
if
(
!
`SELECT (@GALERA_VERSION < @REQUIRED_GALERA_VERSION)`
)
{
skip
Test
requires
Galera
library
version
25.3
.
$galera_version
;
}
SET
SESSION
wsrep_sync_wait
=
0
;
--
disable_result_log
--
disable_query_log
--
let
$galera_version
=
25.3
.
24
source
../../
wsrep
/
include
/
check_galera_version
.
inc
;
--
enable_result_log
--
enable_query_log
--
connection
node_1
SET
SESSION
wsrep_sync_wait
=
DEFAULT
;
# Convert "... pc.weight = N; ..." to "N; ..."
--
let
$s1
=
`SELECT SUBSTR(@@wsrep_provider_options, LOCATE('pc.weight =', @@wsrep_provider_options) + LENGTH('pc.weight = '))`
...
...
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