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

Method read

sql/sql_acl.cc:8725–8742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8723}
8724
8725void GRANT_INFO::read(const Security_context *sctx,
8726 const char *db, const char *table)
8727{
8728#ifdef EMBEDDED_LIBRARY
8729 grant_table_user= grant_table_role= grant_public= NULL;
8730#else
8731 grant_table_user=
8732 table_hash_search(sctx->host, sctx->ip, db, sctx->priv_user,
8733 table, FALSE); /* purecov: inspected */
8734 grant_table_role=
8735 sctx->priv_role[0] ? table_hash_search("", NULL, db, sctx->priv_role,
8736 table, TRUE) : NULL;
8737 grant_public=
8738 acl_public ? table_hash_search("", NULL, db, public_name.str,
8739 table, TRUE) : NULL;
8740#endif
8741 version= grant_version; /* purecov: inspected */
8742}
8743
8744/*
8745 Check column rights in given security context

Callers 9

get_nextMethod · 0.45
initMethod · 0.45
check_grantFunction · 0.45
get_table_grantFunction · 0.45
read_fileFunction · 0.45
mainFunction · 0.45
key_cache_readFunction · 0.45
xtrabackup_copy_logfileFunction · 0.45

Calls 1

table_hash_searchFunction · 0.85

Tested by 1

mainFunction · 0.36