diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2019-05-13 21:34:16 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2019-05-14 16:38:13 +0200 |
commit | 29a0f5acf3b8025590ba38bae736a9ad10df4ed7 (patch) | |
tree | 847b87709c9d383cd4b4da6d870f8771054c3817 /sql/sql_acl.cc | |
parent | c3ea52c92a23f72f49008f493b92f2692d7a1082 (diff) | |
download | mariadb-git-29a0f5acf3b8025590ba38bae736a9ad10df4ed7.tar.gz |
MDEV-19277: Add status variable that gets incremented if connection is aborted prior to authentication
MDEV-19282: Log more specific warning with log_warnings=2 if connection is aborted prior to authentication
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r-- | sql/sql_acl.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 87cfb2b95bb..27f2a985931 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -13718,6 +13718,8 @@ bool acl_authenticate(THD *thd, uint com_change_user_pkt_len) Security_context * const sctx= thd->security_ctx; const ACL_USER * acl_user= mpvio.acl_user; + if (!acl_user) + statistic_increment(aborted_connects_preauth, &LOCK_status); if (acl_user) { |