]> git.pld-linux.org Git - packages/mysql.git/blame_incremental - log_connection_error.patch
- more mysqld.conf changes: skip-locking, default-character-set
[packages/mysql.git] / log_connection_error.patch
... / ...
CommitLineData
1# name : log_connection_error.patch
2# introduced : 12
3# maintainer : Oleg
4#
5#!!! notice !!!
6# Any small change to this file in the main branch
7# should be done or reviewed by the maintainer!
8diff -ruN a/patch_info/log_connection_error.patch b/patch_info/log_connection_error.patch
9--- a/patch_info/log_connection_error.patch 1970-01-01 03:00:00.000000000 +0300
10+++ b/patch_info/log_connection_error.patch 2010-07-28 16:47:47.634070367 +0400
11@@ -0,0 +1,6 @@
12+File=log_connection_error.patch
13+Name=logging abandoned connections
14+Version=1.0
15+Author=Percona <info@percona.com>
16+License=GPL
17+Comment=
18diff -ruN a/sql/mysqld.cc b/sql/mysqld.cc
19--- a/sql/mysqld.cc 2010-07-28 16:47:47.105319218 +0400
20+++ b/sql/mysqld.cc 2010-07-28 16:47:47.644101813 +0400
21@@ -4990,6 +4990,10 @@
22
23 DBUG_PRINT("error",("Too many connections"));
24 close_connection(thd, ER_CON_COUNT_ERROR);
25+ if (global_system_variables.log_warnings)
26+ {
27+ sql_print_warning("%s", ER_DEFAULT(ER_CON_COUNT_ERROR));
28+ }
29 delete thd;
30 DBUG_VOID_RETURN;
31 }
32@@ -5370,6 +5374,10 @@
33 if (!(thd->net.vio= vio_new_win32pipe(hConnectedPipe)) ||
34 my_net_init(&thd->net, thd->net.vio))
35 {
36+ if (global_system_variables.log_warnings)
37+ {
38+ sql_print_warning("%s", ER_DEFAULT(ER_OUT_OF_RESOURCES));
39+ }
40 close_connection(thd, ER_OUT_OF_RESOURCES);
41 delete thd;
42 continue;
43@@ -5565,6 +5573,10 @@
44 event_conn_closed)) ||
45 my_net_init(&thd->net, thd->net.vio))
46 {
47+ if (global_system_variables.log_warnings)
48+ {
49+ sql_print_warning("%s", ER_DEFAULT(ER_OUT_OF_RESOURCES));
50+ }
51 close_connection(thd, ER_OUT_OF_RESOURCES);
52 errmsg= 0;
53 goto errorconn;
This page took 0.022612 seconds and 4 git commands to generate.