| 2761 | */ |
| 2762 | |
| 2763 | bool is_acl_user(const char *host, const char *user) |
| 2764 | { |
| 2765 | bool res; |
| 2766 | |
| 2767 | /* --skip-grants */ |
| 2768 | if (!initialized) |
| 2769 | return TRUE; |
| 2770 | |
| 2771 | mysql_mutex_lock(&acl_cache->lock); |
| 2772 | res= find_acl_user(host, user, TRUE) != NULL; |
| 2773 | mysql_mutex_unlock(&acl_cache->lock); |
| 2774 | return res; |
| 2775 | } |
| 2776 | |
| 2777 | |
| 2778 | /* |
nothing calls this directly
no test coverage detected