Commit 0dbfc0fd authored by Sergey Vojtovich's avatar Sergey Vojtovich

Yet more fixes covering thread_id type change

Also fixed race condition in main.connect2 test: we need to wait for
disconnected connections to actually decrease Threads_connected.
parent ee590911
...@@ -991,19 +991,6 @@ ...@@ -991,19 +991,6 @@
VARIABLE_COMMENT Seconds between sending progress reports to the client for time-consuming statements. Set to 0 to disable progress reporting. VARIABLE_COMMENT Seconds between sending progress reports to the client for time-consuming statements. Set to 0 to disable progress reporting.
NUMERIC_MIN_VALUE 0 NUMERIC_MIN_VALUE 0
NUMERIC_MAX_VALUE 4294967295 NUMERIC_MAX_VALUE 4294967295
@@ -3053,10 +3053,10 @@
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE 0
VARIABLE_SCOPE SESSION ONLY
-VARIABLE_TYPE BIGINT UNSIGNED
+VARIABLE_TYPE INT UNSIGNED
VARIABLE_COMMENT This variable is for internal server use
NUMERIC_MIN_VALUE 0
-NUMERIC_MAX_VALUE 18446744073709551615
+NUMERIC_MAX_VALUE 4294967295
NUMERIC_BLOCK_SIZE 1
ENUM_VALUE_LIST NULL
READ_ONLY NO
@@ -3067,7 +3067,7 @@ @@ -3067,7 +3067,7 @@
GLOBAL_VALUE_ORIGIN COMPILE-TIME GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE 16384 DEFAULT_VALUE 16384
......
...@@ -71,6 +71,8 @@ connect(con1,localhost,root,,test,$MASTER_EXTRA_PORT,); ...@@ -71,6 +71,8 @@ connect(con1,localhost,root,,test,$MASTER_EXTRA_PORT,);
connection default; connection default;
# Check that threads_connected didn't count aborted connections # Check that threads_connected didn't count aborted connections
let $count_sessions= 1;
--source include/wait_until_count_sessions.inc
show status like "Threads_connected"; show status like "Threads_connected";
# #
......
...@@ -95,7 +95,7 @@ static void connection_class_handler(THD *thd, uint event_subclass, va_list ap) ...@@ -95,7 +95,7 @@ static void connection_class_handler(THD *thd, uint event_subclass, va_list ap)
mysql_event_connection event; mysql_event_connection event;
event.event_subclass= event_subclass; event.event_subclass= event_subclass;
event.status= va_arg(ap, int); event.status= va_arg(ap, int);
event.thread_id= va_arg(ap, unsigned long); event.thread_id= (unsigned long) va_arg(ap, long long);
event.user= va_arg(ap, const char *); event.user= va_arg(ap, const char *);
event.user_length= va_arg(ap, unsigned int); event.user_length= va_arg(ap, unsigned int);
event.priv_user= va_arg(ap, const char *); event.priv_user= va_arg(ap, const char *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment