diff options
-rw-r--r-- | plugin/server_audit/server_audit.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugin/server_audit/server_audit.c b/plugin/server_audit/server_audit.c index c8b22eee20c..7979b08f40c 100644 --- a/plugin/server_audit/server_audit.c +++ b/plugin/server_audit/server_audit.c @@ -16,7 +16,7 @@ #define PLUGIN_VERSION 0x104 -#define PLUGIN_STR_VERSION "1.4.8" +#define PLUGIN_STR_VERSION "1.4.8-sup2" #define _my_thread_var loc_thread_var @@ -1288,8 +1288,8 @@ static void change_connection(struct connection_info *cn, static int write_log(const char *message, size_t len, int take_lock) { int result= 0; - if (take_lock) - flogger_mutex_lock(&lock_operations); +// if (take_lock) +// flogger_mutex_lock(&lock_operations); if (output_type == OUTPUT_FILE) { @@ -1306,8 +1306,8 @@ static int write_log(const char *message, size_t len, int take_lock) "%s %.*s", syslog_info, (int) len, message); } exit: - if (take_lock) - flogger_mutex_unlock(&lock_operations); +// if (take_lock) +// flogger_mutex_unlock(&lock_operations); return result; } @@ -1526,8 +1526,8 @@ static int do_log_user(const char *name, int take_lock) return 0; len= strlen(name); - if (take_lock) - flogger_mutex_lock(&lock_operations); +// if (take_lock) +// flogger_mutex_lock(&lock_operations); if (incl_user_coll.n_users) result= coll_search(&incl_user_coll, name, len) != 0; @@ -1536,8 +1536,8 @@ static int do_log_user(const char *name, int take_lock) else result= 1; - if (take_lock) - flogger_mutex_unlock(&lock_operations); +// if (take_lock) +// flogger_mutex_unlock(&lock_operations); return result; } @@ -1638,7 +1638,7 @@ static int log_statement_ex(const struct connection_info *cn, int error_code, const char *type, int take_lock) { size_t csize; - char message_loc[1024]; + char message_loc[4*1024]; char *message= message_loc; size_t message_size= sizeof(message_loc); char *uh_buffer; |