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
b2440e74
Commit
b2440e74
authored
Jul 09, 2019
by
Julius Goryavsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved error messages and added another path to the version check utility
parent
cf7a8b9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
mysql-test/lib/My/SafeProcess.pm
mysql-test/lib/My/SafeProcess.pm
+2
-2
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+13
-3
No files found.
mysql-test/lib/My/SafeProcess.pm
View file @
b2440e74
...
...
@@ -123,8 +123,8 @@ sub find_bin {
}
# Wsrep version check utility:
$wsrep_check_version
=
my_find_bin
(
$bindir
,
"
lib/My/SafeProcess
",
"
wsrep_check_version
"
,
NOT_REQUIRED
);
my_find_bin
(
$bindir
,
["
lib/My/SafeProcess
",
"
My/SafeProcess
"]
,
"
wsrep_check_version
",
NOT_REQUIRED
);
}
...
...
mysql-test/mysql-test-run.pl
View file @
b2440e74
...
...
@@ -401,9 +401,19 @@ sub check_wsrep_version() {
}
sub
wsrep_version_message
()
{
my
$output
=
`
$My
::SafeProcess::wsrep_check_version -p
`;
$output
=~
s/\s+\z//
;
return
"
Wsrep provider version mismatch (
"
.
$output
.
"
)
";
if
(
$
My::SafeProcess::
wsrep_check_version
ne
"")
{
my
$output
=
`
$My
::SafeProcess::wsrep_check_version -p
`;
if
((
$?
>>
8
)
==
0
)
{
$output
=~
s/\s+\z//
;
return
"
Wsrep provider version mismatch (
"
.
$output
.
"
)
";
}
else
{
return
"
Galera library does not contain a version symbol
";
}
}
else
{
return
"
Unable to find a wsrep version check utility
";
}
}
sub
which
($)
{
return
`
sh -c "command -v
$_
[0]"
`
}
...
...
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