summaryrefslogtreecommitdiff
path: root/sql/net_serv.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2011-01-12 17:08:52 +0200
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2011-01-12 17:08:52 +0200
commit157a2245f25336ca85df44e6a30f29bd5433cc7b (patch)
treeda0982c91ebe6b9ce8a91a26ba09fb425b1341dc /sql/net_serv.cc
parent541e0fa8bf7ffaf7f443cdc2cc69721032aeefcf (diff)
parente073e2c0be3860eafd08b2ab14c8490dcb3b05fc (diff)
downloadmariadb-git-157a2245f25336ca85df44e6a30f29bd5433cc7b.tar.gz
merge
Diffstat (limited to 'sql/net_serv.cc')
-rw-r--r--sql/net_serv.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/sql/net_serv.cc b/sql/net_serv.cc
index d2d3b1903a2..0c559f5619d 100644
--- a/sql/net_serv.cc
+++ b/sql/net_serv.cc
@@ -170,17 +170,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));