]> git.pld-linux.org Git - packages/mysql.git/blob - log_connection_error.patch
- rel 2; reenable sphix
[packages/mysql.git] / log_connection_error.patch
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!
8 --- /dev/null
9 +++ b/patch_info/log_connection_error.patch
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=
17 --- a/sql/mysqld.cc
18 +++ b/sql/mysqld.cc
19 @@ -5098,6 +5098,10 @@
20  
21      DBUG_PRINT("error",("Too many connections"));
22      close_connection(thd, ER_CON_COUNT_ERROR);
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    }
30 @@ -5481,6 +5485,10 @@
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 +      }
38        close_connection(thd, ER_OUT_OF_RESOURCES);
39        delete thd;
40        continue;
41 @@ -5676,6 +5684,10 @@
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 +      }
49        close_connection(thd, ER_OUT_OF_RESOURCES);
50        errmsg= 0;
51        goto errorconn;
This page took 0.040197 seconds and 3 git commands to generate.