mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-23 12:47:56 +00:00
Check and die if pt-table-checksum ran with DBD::mysql v4.014.
This commit is contained in:
@@ -7383,6 +7383,18 @@ sub _d {
|
|||||||
# ############################################################################
|
# ############################################################################
|
||||||
# Run the program.
|
# Run the program.
|
||||||
# ############################################################################
|
# ############################################################################
|
||||||
|
|
||||||
|
# https://bugs.launchpad.net/percona-toolkit/+bug/916999
|
||||||
|
# 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 ( !caller ) { exit main(@ARGV); }
|
if ( !caller ) { exit main(@ARGV); }
|
||||||
|
|
||||||
1; # Because this is a module as well as a script.
|
1; # Because this is a module as well as a script.
|
||||||
|
Reference in New Issue
Block a user