From 681a45b7beef0a421ae44abf83cb8a698d800762 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Fri, 2 Mar 2012 07:46:18 -0800 Subject: [PATCH] Don't catch our own die. --- bin/pt-table-checksum | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/pt-table-checksum b/bin/pt-table-checksum index 1dd0868e..7b471481 100755 --- a/bin/pt-table-checksum +++ b/bin/pt-table-checksum @@ -7388,12 +7388,12 @@ sub _d { # http://www.mysqlperformanceblog.com/2012/02/21/dbd-mysql-4-014-breaks-pt-table-checksum-2-0/ eval { require DBD::mysql; - if ( ($DBD::mysql::VERSION || '') eq '4.014' ) { - die "DBD::mysql v4.014 is installed but it has as bug which prevents " - . "pt-table-checksum 2.0 from working properly. Please upgrade " - . "DBD::mysql to any new version.\n" - } }; +if ( !$EVAL_ERROR && $DBD::mysql::VERSION eq "4.014" ) { + die "DBD::mysql v4.014 is installed but it has as bug which prevents " + . "pt-table-checksum 2.0 from working properly. Please upgrade " + . "DBD::mysql to any new version.\n" +} if ( !caller ) { exit main(@ARGV); }