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
639bd1c7
Commit
639bd1c7
authored
Jul 06, 2018
by
mkaruza
Committed by
Jan Lindström
Aug 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
galera#505 mtr test
MTR test for galera#505
parent
1d414d94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
mysql-test/suite/galera/r/galera#505.result
mysql-test/suite/galera/r/galera#505.result
+5
-0
mysql-test/suite/galera/t/galera#505.test
mysql-test/suite/galera/t/galera#505.test
+17
-0
No files found.
mysql-test/suite/galera/r/galera#505.result
0 → 100644
View file @
639bd1c7
SET GLOBAL wsrep_provider_options = 'pc.weight=3';
SHOW GLOBAL VARIABLES LIKE 'wsrep_provider_options';
Variable_name Value
wsrep_provider_options pc.weight = 3
SET GLOBAL wsrep_provider_options = 'pc.weight=1';
mysql-test/suite/galera/t/galera#505.test
0 → 100644
View file @
639bd1c7
# galera#505 - Change of pc.weight wsrep param will be correctly stored in wsrep_provider_options variable
--
source
include
/
galera_cluster
.
inc
--
connection
node_1
# Convert "... pc.weight = N; ..." to "N; ..."
--
let
$s1
=
`SELECT SUBSTR(@@wsrep_provider_options, LOCATE('pc.weight =', @@wsrep_provider_options) + LENGTH('pc.weight = '))`
# Convert "N; ..." to "N"
--
let
$pc_weight_value
=
`SELECT SUBSTR('$s1', 1, LOCATE(';', '$s1') - 1)`
SET
GLOBAL
wsrep_provider_options
=
'pc.weight=3'
;
--
replace_regex
/.*
(
pc
\
.
weight
=
[
0
-
9
]
+
);
.*/
\
1
/
SHOW
GLOBAL
VARIABLES
LIKE
'wsrep_provider_options'
;
--
eval
SET
GLOBAL
wsrep_provider_options
=
'pc.weight=$pc_weight_value'
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