]> git.pld-linux.org Git - packages/mysql.git/blame - log_connection_error.patch
- rel 2; reenable sphix
[packages/mysql.git] / log_connection_error.patch
CommitLineData
b4e1fa2c
AM
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!
db82db79
AM
8--- /dev/null
9+++ b/patch_info/log_connection_error.patch
b4e1fa2c
AM
10@@ -0,0 +1,6 @@
11+File=log_connection_error.patch
12+Name=logging abandoned connections
13+Version=1.0
14+Author=Percona <info@percona.com>
15+License=GPL
16+Comment=
db82db79
AM
17--- a/sql/mysqld.cc
18+++ b/sql/mysqld.cc
19@@ -5098,6 +5098,10 @@
b4e1fa2c
AM
20
21 DBUG_PRINT("error",("Too many connections"));
d8778560 22 close_connection(thd, ER_CON_COUNT_ERROR);
b4e1fa2c
AM
23+ if (global_system_variables.log_warnings)
24+ {
25+ sql_print_warning("%s", ER_DEFAULT(ER_CON_COUNT_ERROR));
26+ }
27 delete thd;
28 DBUG_VOID_RETURN;
29 }
db82db79 30@@ -5481,6 +5485,10 @@
b4e1fa2c
AM
31 if (!(thd->net.vio= vio_new_win32pipe(hConnectedPipe)) ||
32 my_net_init(&thd->net, thd->net.vio))
33 {
34+ if (global_system_variables.log_warnings)
35+ {
36+ sql_print_warning("%s", ER_DEFAULT(ER_OUT_OF_RESOURCES));
37+ }
d8778560 38 close_connection(thd, ER_OUT_OF_RESOURCES);
b4e1fa2c
AM
39 delete thd;
40 continue;
db82db79 41@@ -5676,6 +5684,10 @@
b4e1fa2c
AM
42 event_conn_closed)) ||
43 my_net_init(&thd->net, thd->net.vio))
44 {
45+ if (global_system_variables.log_warnings)
46+ {
47+ sql_print_warning("%s", ER_DEFAULT(ER_OUT_OF_RESOURCES));
48+ }
d8778560 49 close_connection(thd, ER_OUT_OF_RESOURCES);
b4e1fa2c
AM
50 errmsg= 0;
51 goto errorconn;
This page took 0.094342 seconds and 4 git commands to generate.