File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -108,10 +108,6 @@ LEX_CSTRING current_user_and_current_role=
108
108
LEX_CSTRING none= {STRING_WITH_LEN (" NONE" ) };
109
109
LEX_CSTRING public_name= {STRING_WITH_LEN (" PUBLIC" ) };
110
110
111
- static inline bool is_public (const char *l) { return l == public_name.str ; }
112
- static inline bool is_public (const LEX_CSTRING *l) { return is_public (l->str ); }
113
- static inline bool is_public (const LEX_USER *l) { return is_public (&l->user ); }
114
-
115
111
static plugin_ref old_password_plugin;
116
112
static plugin_ref native_password_plugin;
117
113
@@ -135,6 +131,10 @@ struct acl_host_and_ip
135
131
136
132
#ifndef NO_EMBEDDED_ACCESS_CHECKS
137
133
static bool compare_hostname (const acl_host_and_ip *, const char *, const char *);
134
+ static inline bool is_public (const char *l) { return l == public_name.str ; }
135
+ static inline bool is_public (const LEX_CSTRING *l) { return is_public (l->str ); }
136
+ static inline bool is_public (const LEX_USER *l) { return is_public (&l->user ); }
137
+
138
138
#else
139
139
#define compare_hostname (X,Y,Z ) 0
140
140
#endif
You can’t perform that action at this time.
0 commit comments