mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 23:35:32 +02:00
Changed my_thread_id to int64 to fix compilation problem with
my_atomic_add32_explicit on windows Fixed that server_audit.c also works if one compiles with safemalloc Fixed compiler warnings
This commit is contained in:
parent
1ab711bebb
commit
b3093073b1
15 changed files with 113 additions and 88 deletions
|
|
@ -97,7 +97,11 @@ static void closelog() {}
|
|||
#define FLOGGER_NO_PSI
|
||||
|
||||
/* How to access the pthread_mutex in mysql_mutex_t */
|
||||
#ifdef SAFE_MUTEX
|
||||
#define mysql_mutex_real_mutex(A) &(A)->m_mutex.mutex
|
||||
#else
|
||||
#define mysql_mutex_real_mutex(A) &(A)->m_mutex
|
||||
#endif
|
||||
|
||||
#define flogger_mutex_init(A,B,C) do{}while(0)
|
||||
#define flogger_mutex_destroy(A) do{}while(0)
|
||||
|
|
|
|||
|
|
@ -49,15 +49,18 @@ static int validate(MYSQL_LEX_STRING *username, MYSQL_LEX_STRING *password)
|
|||
others < min_others;
|
||||
}
|
||||
|
||||
static void fix_min_length(MYSQL_THD thd __attribute__((unused)),
|
||||
struct st_mysql_sys_var *var,
|
||||
void *var_ptr, const void *save)
|
||||
|
||||
static void
|
||||
fix_min_length(MYSQL_THD thd __attribute__((unused)),
|
||||
struct st_mysql_sys_var *var __attribute__((unused)),
|
||||
void *var_ptr, const void *save)
|
||||
{
|
||||
*((unsigned int *)var_ptr)= *((unsigned int *)save);
|
||||
if (min_length < min_digits + 2 * min_letters + min_others)
|
||||
min_length= min_digits + 2 * min_letters + min_others;
|
||||
}
|
||||
|
||||
|
||||
static MYSQL_SYSVAR_UINT(minimal_length, min_length, PLUGIN_VAR_RQCMDARG,
|
||||
"Minimal required password length", NULL, fix_min_length, 8, 0, 1000, 1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue