diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2020-05-11 16:27:22 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2020-05-11 16:27:22 +0400 |
commit | f2670496480afa54df72000c0767de76b4fd023b (patch) | |
tree | 9e8acd7cf7dc04567917eac5c7f0890020396e8c | |
parent | d01d94d77bbb663caca2f34f4b25d5db028f4c4d (diff) | |
download | mariadb-git-f2670496480afa54df72000c0767de76b4fd023b.tar.gz |
The customized server_audit plugin to test if it affects.bb-sup37463
-rw-r--r-- | plugin/server_audit/server_audit.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugin/server_audit/server_audit.c b/plugin/server_audit/server_audit.c index 460c038dfd0..987eabd5755 100644 --- a/plugin/server_audit/server_audit.c +++ b/plugin/server_audit/server_audit.c @@ -15,7 +15,7 @@ #define PLUGIN_VERSION 0x104 -#define PLUGIN_STR_VERSION "1.4.8" +#define PLUGIN_STR_VERSION "1.4.sup1" #define _my_thread_var loc_thread_var @@ -1287,8 +1287,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) { @@ -1305,8 +1305,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; } @@ -1525,8 +1525,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; @@ -1535,8 +1535,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; } |