summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2019-05-13 21:34:16 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2019-05-14 09:25:39 +0200
commitfda846b4af2fdb78a9c347650a51931ce499f351 (patch)
tree953ca3aa6fd11e7de5c1d67f595eaa9c7ae48ab1 /sql/sql_acl.cc
parent41779561ec543787b073a1506a2291f6f89cff48 (diff)
downloadmariadb-git-bb-10.4-MDEV-19282.tar.gz
MDEV-19277: Add status variable that gets incremented if connection is aborted prior to authenticationbb-10.4-MDEV-19282
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.cc2
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)
{