mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fixed build failure in embedded library regarding that decrease_user_connections() was not declared
This commit is contained in:
@ -809,6 +809,7 @@ inline bool check_merge_table_access(THD *thd, char *db, TABLE_LIST *table_list)
|
|||||||
inline bool check_some_routine_access(THD *thd, const char *db,
|
inline bool check_some_routine_access(THD *thd, const char *db,
|
||||||
const char *name, bool is_proc)
|
const char *name, bool is_proc)
|
||||||
{ return false; }
|
{ return false; }
|
||||||
|
#define decrease_user_connections(X) do { } while(0) /* nothing */
|
||||||
#endif /*NO_EMBEDDED_ACCESS_CHECKS*/
|
#endif /*NO_EMBEDDED_ACCESS_CHECKS*/
|
||||||
|
|
||||||
bool multi_update_precheck(THD *thd, TABLE_LIST *tables);
|
bool multi_update_precheck(THD *thd, TABLE_LIST *tables);
|
||||||
@ -1042,7 +1043,9 @@ bool init_new_connection_handler_thread();
|
|||||||
void reset_mqh(LEX_USER *lu, bool get_them);
|
void reset_mqh(LEX_USER *lu, bool get_them);
|
||||||
bool check_mqh(THD *thd, uint check_command);
|
bool check_mqh(THD *thd, uint check_command);
|
||||||
void time_out_user_resource_limits(THD *thd, USER_CONN *uc);
|
void time_out_user_resource_limits(THD *thd, USER_CONN *uc);
|
||||||
|
#ifndef NO_EMBEDDED_ACCESS_CHECKS
|
||||||
void decrease_user_connections(USER_CONN *uc);
|
void decrease_user_connections(USER_CONN *uc);
|
||||||
|
#endif
|
||||||
bool thd_init_client_charset(THD *thd, uint cs_number);
|
bool thd_init_client_charset(THD *thd, uint cs_number);
|
||||||
inline bool is_supported_parser_charset(CHARSET_INFO *cs)
|
inline bool is_supported_parser_charset(CHARSET_INFO *cs)
|
||||||
{
|
{
|
||||||
|
@ -6977,7 +6977,6 @@ bool check_routine_level_acl(THD *thd, const char *db, const char *name,
|
|||||||
#undef HAVE_OPENSSL
|
#undef HAVE_OPENSSL
|
||||||
#ifdef NO_EMBEDDED_ACCESS_CHECKS
|
#ifdef NO_EMBEDDED_ACCESS_CHECKS
|
||||||
#define initialized 0
|
#define initialized 0
|
||||||
#define decrease_user_connections(X) /* nothing */
|
|
||||||
#define check_for_max_user_connections(X,Y) 0
|
#define check_for_max_user_connections(X,Y) 0
|
||||||
#define get_or_create_user_conn(A,B,C,D) 0
|
#define get_or_create_user_conn(A,B,C,D) 0
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user