diff options
author | Dmitry Shulga <Dmitry.Shulga@oracle.com> | 2011-01-11 21:26:31 +0600 |
---|---|---|
committer | Dmitry Shulga <Dmitry.Shulga@oracle.com> | 2011-01-11 21:26:31 +0600 |
commit | 1304d8d53b6425d9c467846c8ac303c2bf129910 (patch) | |
tree | 3889eb8fad3c0063c5fa478ffcbe549b589df1a6 /sql/net_serv.cc | |
parent | 7d2fad91a933dd3f11ceebbd75ef97bca863dd44 (diff) | |
parent | 5bd50b80a75d4d5246e40d032e14397bcde036bb (diff) | |
download | mariadb-git-1304d8d53b6425d9c467846c8ac303c2bf129910.tar.gz |
Auto-merge mysql-5.1 -> mysql-5.5 for bug#58887.
Diffstat (limited to 'sql/net_serv.cc')
-rw-r--r-- | sql/net_serv.cc | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sql/net_serv.cc b/sql/net_serv.cc index ab88e87be69..d60e2051ccd 100644 --- a/sql/net_serv.cc +++ b/sql/net_serv.cc @@ -164,17 +164,7 @@ my_bool net_realloc(NET *net, size_t length) DBUG_ENTER("net_realloc"); DBUG_PRINT("enter",("length: %lu", (ulong) length)); - /* - When compression is off, net->where_b is always 0. - With compression turned on, net->where_b may indicate - that we still have a piece of the previous logical - packet in the buffer, unprocessed. Take it into account - when checking that max_allowed_packet is not exceeded. - This ensures that the client treats max_allowed_packet - limit identically, regardless of compression being on - or off. - */ - if (length >= (net->max_packet_size + net->where_b)) + if (length >= net->max_packet_size) { DBUG_PRINT("error", ("Packet too large. Max size: %lu", net->max_packet_size)); |