diff options
author | jani@a193-229-222-105.elisa-laajakaista.fi <> | 2005-12-04 20:57:34 +0200 |
---|---|---|
committer | jani@a193-229-222-105.elisa-laajakaista.fi <> | 2005-12-04 20:57:34 +0200 |
commit | c6d933c629ff7d5c32273cc203f1c3af10d8725d (patch) | |
tree | d5b66de3b9faff2dd9d2b11d90271bb2c8485df9 | |
parent | 9fd13ba93dbdd0e75710356975393cde88f76bc3 (diff) | |
parent | 4f6a321bb80034215d04bec3c33ddba28a83ce1f (diff) | |
download | mariadb-git-c6d933c629ff7d5c32273cc203f1c3af10d8725d.tar.gz |
Merge a193-229-222-105.elisa-laajakaista.fi:/home/my/bk/mysql-4.1
into a193-229-222-105.elisa-laajakaista.fi:/home/my/bk/mysql-5.0
-rw-r--r-- | netware/mysql_test_run.c | 4 | ||||
-rw-r--r-- | sql/sql_parse.cc | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/netware/mysql_test_run.c b/netware/mysql_test_run.c index 98b7ab7fd8c..6bab2f0149c 100644 --- a/netware/mysql_test_run.c +++ b/netware/mysql_test_run.c @@ -349,6 +349,8 @@ void start_master() add_arg(&al, "--tmpdir=%s", mysql_tmp_dir); add_arg(&al, "--language=%s", lang_dir); add_arg(&al, "--log-bin-trust-routine-creators"); + add_arg(&al, "--log-slow-queries"); + add_arg(&al, "--log-queries-not-using-indexes"); #ifdef DEBUG //only for debug builds add_arg(&al, "--debug"); #endif @@ -523,6 +525,8 @@ void start_slave() add_arg(&al, "-O"); add_arg(&al, "slave_net_timeout=10"); add_arg(&al, "--log-bin-trust-routine-creators"); + add_arg(&al, "--log-slow-queries"); + add_arg(&al, "--log-queries-not-using-indexes"); #ifdef DEBUG //only for debug builds add_arg(&al, "--debug"); #endif diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index c05529da745..94ce66bd71d 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -797,6 +797,9 @@ static int check_connection(THD *thd) DBUG_PRINT("info", ("New connection received on %s", vio_description(net->vio))); +#ifdef SIGNAL_WITH_VIO_CLOSE + thd->set_active_vio(net->vio); +#endif if (!thd->main_security_ctx.host) // If TCP/IP connection { |