mirror of
https://github.com/MariaDB/server.git
synced 2025-02-09 23:24:11 +01:00
![Julius Goryavsky](/assets/img/avatar_default.png)
The test requires adaptation for MariaDB, which is done in this patch. In addition, this patch includes a fix for the SST script startup code that adds escaping for special characters on the command line (in case they are contained in the arguments to mysqld). The fix does not require separate tests, as the required tests are already part of the mtr suite for Galera.
8 lines
320 B
SQL
8 lines
320 B
SQL
#
|
|
# Extract base_port from galera node.
|
|
#
|
|
|
|
# Convert "... base_port = N; ..." to "N; ..."
|
|
--let $s1 = `SELECT SUBSTR(@@wsrep_provider_options, LOCATE('base_port =', @@wsrep_provider_options) + LENGTH('base_port = '))`
|
|
# Convert "N; ..." to "N"
|
|
--let $_NODE_GALERAPORT = `SELECT SUBSTR('$s1', 1, LOCATE(';', '$s1') - 1)`
|