Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
4e41f535
Commit
4e41f535
authored
Jan 11, 2011
by
Dmitry Shulga
Browse files
Options
Browse Files
Download
Plain Diff
Auto-merge mysql-5.1 -> mysql-5.5 for bug#58887.
parents
5387af00
0fd846ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
sql/net_serv.cc
sql/net_serv.cc
+1
-11
No files found.
sql/net_serv.cc
View file @
4e41f535
...
...
@@ -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
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment