Implement version-check in the remaining tools.

This commit is contained in:
Daniel Nichter
2012-08-21 16:24:29 -06:00
parent ee583ba729
commit 50f218a288
6 changed files with 62 additions and 8 deletions

View File

@@ -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.
# #########################################################################