| 7118 | |
| 7119 | |
| 7120 | void get_mqh(const char *user, const char *host, USER_CONN *uc) |
| 7121 | { |
| 7122 | ACL_USER *acl_user; |
| 7123 | |
| 7124 | mysql_mutex_lock(&acl_cache->lock); |
| 7125 | |
| 7126 | if (initialized && (acl_user= find_acl_user(host,user, FALSE))) |
| 7127 | uc->user_resources= acl_user->user_resource; |
| 7128 | else |
| 7129 | memset(&uc->user_resources, 0, sizeof(uc->user_resources)); |
| 7130 | |
| 7131 | mysql_mutex_unlock(&acl_cache->lock); |
| 7132 | } |
| 7133 | |
| 7134 | /** |
| 7135 | Open the grant tables. |
nothing calls this directly
no test coverage detected