From d713d6e99af253acbf3566c0c3d665ad203070ad Mon Sep 17 00:00:00 2001 From: Brian Fraser Date: Wed, 17 Oct 2012 17:55:37 -0300 Subject: [PATCH] Fix for 978133: Remove the table privilege checks from pt-query-digest. The same checks were removed from pt-table-checksum in 2.1.3 and pt-table-sync in 2.1.4 --- bin/pt-query-digest | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/bin/pt-query-digest b/bin/pt-query-digest index 29d2a737..6f84877a 100755 --- a/bin/pt-query-digest +++ b/bin/pt-query-digest @@ -13457,11 +13457,9 @@ sub main { if ( !$tp->check_table( dbh => $qv_dbh, db => $db_tbl[0], - tbl => $db_tbl[1], - all_privs => 1) ) + tbl => $db_tbl[1]) ) { - die "The query review table $db_tbl " - . "does not exist or you do not have INSERT privileges"; + die "The query review table $db_tbl does not exist"; } # Set up the new QueryReview object. @@ -13500,11 +13498,9 @@ sub main { if ( !$tp->check_table( dbh => $qv_dbh2, db => $hdb_tbl[0], - tbl => $hdb_tbl[1], - all_privs => 1) ) + tbl => $hdb_tbl[1]) ) { - die "The query review history table $hdb_tbl " - . "does not exist or you do not have INSERT privileges"; + die "The query review history table $hdb_tbl does not exist"; } # Inspect for MAGIC_history_cols. Add them to the --select list