mirror of
https://github.com/MariaDB/server.git
synced 2025-07-18 23:03:28 +03:00
Improved error messages and added another path to the version check utility
This commit is contained in:
@ -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]"` }
|
||||
|
Reference in New Issue
Block a user