diff options
author | Sergei Golubchik <serg@mariadb.org> | 2021-04-03 12:12:15 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2021-04-03 12:12:46 +0200 |
commit | 6fe624b5acf51383d39eb0e547a03779d41cf4a8 (patch) | |
tree | 3ae716fe0efc56f6386cfd9ae4b19de6c506e8d9 /plugin | |
parent | fb9d151934c3444e55eb3ea505e2403d082c9a85 (diff) | |
download | mariadb-git-6fe624b5acf51383d39eb0e547a03779d41cf4a8.tar.gz |
MDEV-25242 Server crashes in check_grant upon invoking function with userstat enabled
also fix index_stats table.
followup for 5a798071199
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/userstat/index_stats.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/userstat/index_stats.cc b/plugin/userstat/index_stats.cc index 87e6da63e38..1a7b0bbfcbd 100644 --- a/plugin/userstat/index_stats.cc +++ b/plugin/userstat/index_stats.cc @@ -26,7 +26,7 @@ static int index_stats_fill(THD *thd, TABLE_LIST *tables, COND *cond) tmp_table.grant.privilege= 0; if (check_access(thd, SELECT_ACL, tmp_table.db, &tmp_table.grant.privilege, NULL, 0, 1) || - check_grant(thd, SELECT_ACL, &tmp_table, 1, UINT_MAX, 1)) + check_grant(thd, SELECT_ACL, &tmp_table, 1, 1, 1)) continue; index_name= strend(tmp_table.table_name)+1; |