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

This commit is contained in:
Brian Fraser
2012-10-17 17:55:37 -03:00
parent 6771202be0
commit d713d6e99a

View File

@@ -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