PT-1488 Added MySQL 8 roles support to pt-show-grants

This commit is contained in:
Carlos Salguero
2018-03-30 16:35:08 -03:00
parent 2bb4f481dc
commit c6a8f843a7
3 changed files with 144 additions and 2 deletions

View File

@@ -391,7 +391,7 @@ sub verify_test_data {
my @diffs;
foreach my $c ( @checksums ) {
next unless $c->{checksum};
if ( $c->{checksum} ne $ref->{$c->{table}}->{checksum} ) {
if ( $ref->{$c->{table}} && $c->{checksum} ne $ref->{$c->{table}}->{checksum} ) {
push @diffs, $c->{table};
}
}