mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-12 14:18:32 +00:00
Implement version-check in the remaining tools.
This commit is contained in:
@@ -4366,7 +4366,7 @@ use Percona::Toolkit;
|
||||
use constant PTDEBUG => $ENV{PTDEBUG} || 0;
|
||||
|
||||
sub main {
|
||||
@ARGV = @_; # set global ARGV for this package
|
||||
local @ARGV = @_; # set global ARGV for this package
|
||||
|
||||
# ########################################################################
|
||||
# Get configuration information.
|
||||
@@ -4461,6 +4461,14 @@ sub main {
|
||||
$daemon->make_PID_file();
|
||||
}
|
||||
|
||||
# ########################################################################
|
||||
# Do the version-check
|
||||
# ########################################################################
|
||||
if ( $o->get('version-check') && ($o->has('quiet') && !$o->get('quiet')) ) {
|
||||
Pingback::version_check($dbh);
|
||||
return 0 if $ENV{PTVCDEBUG} && PTDEBUG;
|
||||
}
|
||||
|
||||
# #########################################################################
|
||||
# Get the variables and other MySQL info to pass to rules.
|
||||
# #########################################################################
|
||||
|
Reference in New Issue
Block a user