Added --ask-pass option to pt-stalk. Fixed small issue with sandbox when there is no mysql database

This commit is contained in:
Frank Cizmich
2014-09-10 12:45:59 -03:00
parent f0a0a8f737
commit 5166057e15
2 changed files with 20 additions and 0 deletions

View File

@@ -374,6 +374,10 @@ sub verify_test_data {
. join(", ", map { "mysql.$_" } @tables_in_mysql)
. ", "
. join(", ", map { "sakila.$_" } @tables_in_sakila);
# remove leading "," if any
$sql =~ s/CHECKSUM TABLES\s+,/CHECKSUM TABLES /;
my @checksums = @{$dbh->selectall_arrayref($sql, {Slice => {} })};
# Diff the two sets of checksums: host to master (ref).