summaryrefslogtreecommitdiff
path: root/sql/sql_connect.cc
diff options
context:
space:
mode:
authorMikael Ronstrom <mikael@mysql.com>2008-12-20 11:01:41 +0100
committerMikael Ronstrom <mikael@mysql.com>2008-12-20 11:01:41 +0100
commitcc958a18dd9554870edd3b1c6119edf72b661879 (patch)
tree36aa1edfd94289934ffa3aa66af64b899e9a9e77 /sql/sql_connect.cc
parent602f612af09c3ccb6db19286291ae0bca403db5c (diff)
downloadmariadb-git-cc958a18dd9554870edd3b1c6119edf72b661879.tar.gz
Backport of DTrace patches from 6.0
Diffstat (limited to 'sql/sql_connect.cc')
-rw-r--r--sql/sql_connect.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_connect.cc b/sql/sql_connect.cc
index d9fb586eb77..02c8297d019 100644
--- a/sql/sql_connect.cc
+++ b/sql/sql_connect.cc
@@ -19,6 +19,7 @@
*/
#include "mysql_priv.h"
+#include "probes_mysql.h"
#ifdef HAVE_OPENSSL
/*
@@ -1107,6 +1108,9 @@ pthread_handler_t handle_one_connection(void *arg)
if (login_connection(thd))
goto end_thread;
+ MYSQL_CONNECTION_START(thd->thread_id, thd->security_ctx->priv_user,
+ (char *) thd->security_ctx->host_or_ip);
+
prepare_new_connection_state(thd);
while (!net->error && net->vio != 0 &&