summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2004-09-23 17:56:21 +0200
committerunknown <guilhem@mysql.com>2004-09-23 17:56:21 +0200
commit9860a95a3f4e7317890b6905f9539eadadc56206 (patch)
treea4d75cacf6a635cbf24db6687c09f77bfcef3e5d /sql
parentb2307545cb9412fc4896c487495889979efa7d7b (diff)
parent0e6975f33ba434ccd884b8c3ebae36332c000a94 (diff)
downloadmariadb-git-9860a95a3f4e7317890b6905f9539eadadc56206.tar.gz
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/mysql_src/mysql-4.0
Diffstat (limited to 'sql')
-rw-r--r--sql/net_pkg.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/net_pkg.cc b/sql/net_pkg.cc
index cc9147fe90a..df77d0347f2 100644
--- a/sql/net_pkg.cc
+++ b/sql/net_pkg.cc
@@ -132,6 +132,10 @@ net_printf(NET *net, uint errcode, ...)
length=sizeof(net->last_error)-1; /* purecov: inspected */
va_end(args);
+ /* Replication slave relies on net->last_* to see if there was error */
+ net->last_errno= errcode;
+ strmake(net->last_error, text_pos, sizeof(net->last_error)-1);
+
if (net->vio == 0)
{
if (thd && thd->bootstrap)