Commit 6c7910ee authored by Jan Lindström's avatar Jan Lindström

Fix test galera#505 galera library version check.

Test requires galera library version 25.3.24.
parent e63b84b9
...@@ -2,22 +2,16 @@ ...@@ -2,22 +2,16 @@
--source include/galera_cluster.inc --source include/galera_cluster.inc
--disable_query_log --connection node_1
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;
if (!`SELECT (@GALERA_VERSION < @REQUIRED_GALERA_VERSION)`) SET SESSION wsrep_sync_wait=0;
{ --disable_result_log
skip Test requires Galera library version 25.3.$galera_version; --disable_query_log
} --let $galera_version=25.3.24
source ../../wsrep/include/check_galera_version.inc;
--enable_result_log
--enable_query_log --enable_query_log
SET SESSION wsrep_sync_wait=DEFAULT;
--connection node_1
# Convert "... pc.weight = N; ..." to "N; ..." # Convert "... pc.weight = N; ..." to "N; ..."
--let $s1 = `SELECT SUBSTR(@@wsrep_provider_options, LOCATE('pc.weight =', @@wsrep_provider_options) + LENGTH('pc.weight = '))` --let $s1 = `SELECT SUBSTR(@@wsrep_provider_options, LOCATE('pc.weight =', @@wsrep_provider_options) + LENGTH('pc.weight = '))`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment