summaryrefslogtreecommitdiff
path: root/sql/sql_connect.cc
diff options
context:
space:
mode:
authorkostja@bodhi.(none) <>2007-10-30 20:10:11 +0300
committerkostja@bodhi.(none) <>2007-10-30 20:10:11 +0300
commitcd72fffa5fd3456e2e04ceb1fc51737fe8ceab4b (patch)
treec2548e816a592f05bae2fef620d54c08c61982e6 /sql/sql_connect.cc
parent5a09edd203ea125b846af82935b7d7e5da430435 (diff)
parente4b353c40c551e4ac0832dd0106219e7e0b716ba (diff)
downloadmariadb-git-cd72fffa5fd3456e2e04ceb1fc51737fe8ceab4b.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.1-runtime
into bodhi.(none):/opt/local/work/mysql-5.1-runtime-inc-2
Diffstat (limited to 'sql/sql_connect.cc')
-rw-r--r--sql/sql_connect.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_connect.cc b/sql/sql_connect.cc
index c4367b2a8fb..8a817e5993a 100644
--- a/sql/sql_connect.cc
+++ b/sql/sql_connect.cc
@@ -975,12 +975,12 @@ void end_connection(THD *thd)
decrease_user_connections(thd->user_connect);
if (thd->killed ||
- net->error && net->vio != 0 && net->report_error)
+ net->error && net->vio != 0 && thd->is_error())
{
statistic_increment(aborted_threads,&LOCK_status);
}
- if (net->error && net->vio != 0 && net->report_error)
+ if (net->error && net->vio != 0 && thd->is_error())
{
if (!thd->killed && thd->variables.log_warnings > 1)
{