Group :: Databases
RPM: innotop
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: innotop-1.11.1-alt-version_check.patch
Download
Download
Fix version check to proper work with versions like 5.5.43-alt2-log
See also https://github.com/innotop/innotop/pull/142/ , https://github.com/innotop/innotop/pull/146/ .
--- innotop
+++ innotop
@@ -7655,7 +7655,7 @@ sub connect_to_db {
# Compares versions like 5.0.27 and 4.1.15-standard-log
sub version_ge {
my ( $dbh, $target ) = @_;
- my $version = sprintf('%03d%03d%03d', $dbh->{mysql_serverinfo} =~ m/(\d+)/g);
+ my $version = sprintf('%03d%03d%03d', $dbh->{mysql_serverinfo} =~ m/^(\d+).(\d+).(\d+)/);
return $version ge sprintf('%03d%03d%03d', $target =~ m/(\d+)/g);
}