summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-04-09 14:32:06 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-04-09 14:32:06 +0300
commit450c017c2d9e490d92c949d5164b4a99b6b3f5db (patch)
treee050b47636fe0c2019fe38fadee8d763c211ba3f /plugin
parent4c80dcda46e4183df00f9fdb35ed08975e55e8f8 (diff)
parent5a3151bcda2f279091a1e2f049a7d11cd91065d6 (diff)
downloadmariadb-git-450c017c2d9e490d92c949d5164b4a99b6b3f5db.tar.gz
Merge 10.2 into 10.3
Diffstat (limited to 'plugin')
-rw-r--r--plugin/userstat/index_stats.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/userstat/index_stats.cc b/plugin/userstat/index_stats.cc
index 0528507c50e..da0d4060b98 100644
--- a/plugin/userstat/index_stats.cc
+++ b/plugin/userstat/index_stats.cc
@@ -28,7 +28,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.str,
&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= tmp_table.table_name.str + tmp_table.table_name.length + 1;