summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorandrey@example.com <>2006-10-18 18:17:41 +0200
committerandrey@example.com <>2006-10-18 18:17:41 +0200
commit9010a7952748254e47caeb3108d6d4bbcd98e300 (patch)
treeb1c4c4c2727fbccf87ca3dc03839f8d18c6968fc /sql
parent609a3cd2953458626065e1f0b288c1dc5bd3e877 (diff)
downloadmariadb-git-9010a7952748254e47caeb3108d6d4bbcd98e300.tar.gz
Fix for bug#23379 "wrong time value in SHOW PROCESSLIST"
The value taken to be shown in SHOW PROCESSLIST is not initialized when THD is created and will be random for unauthenticated connections. To the documentor: Random value, instead of NULL, was shown, in SHOW PROCESSLIST for still non-authenticated connections.
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_class.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index da752977fcd..f18f2fb6b7c 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -181,6 +181,7 @@ THD::THD()
// Must be reset to handle error with THD's created for init of mysqld
lex->current_select= 0;
start_time=(time_t) 0;
+ time_after_lock=(time_t) 0;
current_linfo = 0;
slave_thread = 0;
variables.pseudo_thread_id= 0;