diff options
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r-- | sql/protocol.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc index da2a285fffc..c2d9117b062 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -209,6 +209,10 @@ net_printf(THD *thd, uint errcode, ...) format,args); 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); + #ifndef EMBEDDED_LIBRARY if (net->vio == 0) { |