MCPcopy Create free account
hub / github.com/MariaDB/server / get_table_grant

Function get_table_grant

sql/sql_acl.cc:9213–9224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9211*****************************************************************************/
9212
9213privilege_t get_table_grant(THD *thd, TABLE_LIST *table)
9214{
9215 Security_context *sctx= thd->security_ctx;
9216 const char *db = table->db.str ? table->db.str : thd->db.str;
9217
9218 mysql_rwlock_rdlock(&LOCK_grant);
9219 table->grant.read(sctx, db, table->table_name.str);
9220 table->grant.privilege|= table->grant.aggregate_privs();
9221 privilege_t privilege(table->grant.privilege);
9222 mysql_rwlock_unlock(&LOCK_grant);
9223 return privilege;
9224}
9225
9226
9227/*

Callers 1

get_schema_views_recordFunction · 0.85

Calls 2

aggregate_privsMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected