diff options
author | sasha@mysql.sashanet.com <> | 2001-05-03 17:27:35 -0600 |
---|---|---|
committer | sasha@mysql.sashanet.com <> | 2001-05-03 17:27:35 -0600 |
commit | fe54369179738cd2e45f6ec6ea97eb82ed283598 (patch) | |
tree | ecd7ff078d860ffde8c328564a21fdb482219457 /sql/mini_client.cc | |
parent | c6ceb04bd82c5e9958d213b54843b8635741381a (diff) | |
download | mariadb-git-fe54369179738cd2e45f6ec6ea97eb82ed283598.tar.gz |
better error message in replication when packet is too large
Diffstat (limited to 'sql/mini_client.cc')
-rw-r--r-- | sql/mini_client.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sql/mini_client.cc b/sql/mini_client.cc index fa1b9da38a8..38180c0c6c8 100644 --- a/sql/mini_client.cc +++ b/sql/mini_client.cc @@ -330,8 +330,14 @@ mc_net_safe_read(MYSQL *mysql) if(errno != EINTR) { mc_end_server(mysql); - net->last_errno=CR_SERVER_LOST; - strmov(net->last_error,ER(net->last_errno)); + if(net->last_errno != ER_NET_PACKET_TOO_LARGE) + { + net->last_errno=CR_SERVER_LOST; + strmov(net->last_error,ER(net->last_errno)); + } + else + strmov(net->last_error, "Packet too large - increase \ +max_allowed_packet on this server"); } return(packet_error); } |