diff options
Diffstat (limited to 'sql/net_serv.cc')
-rw-r--r-- | sql/net_serv.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/net_serv.cc b/sql/net_serv.cc index 8c1792a6c8b..da4f75e74b5 100644 --- a/sql/net_serv.cc +++ b/sql/net_serv.cc @@ -392,6 +392,9 @@ net_real_write(NET *net,const char *packet,ulong len) "%s: my_net_write: fcntl returned error %d, aborting thread\n", my_progname,vio_errno(net->vio)); #endif /* EXTRA_DEBUG */ +#ifdef MYSQL_SERVER + net->last_errno=ER_NET_ERROR_ON_WRITE; +#endif net->error=2; /* Close socket */ goto end; } |