mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
post-review fixes
This commit is contained in:
@ -64,7 +64,7 @@ int Buffer::append(uint position, const char *string, uint len_arg)
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
The method checks whether it is possible to pus a string of teh "len_arg"
|
||||
The method checks whether it is possible to put a string of the "len_arg"
|
||||
length into the buffer, starting from "position" byte. In the case when the
|
||||
buffer is too small it reallocs the buffer. The total size of the buffer is
|
||||
restricted with 16 Mb.
|
||||
@ -81,7 +81,7 @@ int Buffer::reserve(uint position, uint len_arg)
|
||||
|
||||
if (position + len_arg >= buffer_size)
|
||||
{
|
||||
buffer= (char *) my_realloc(buffer,
|
||||
buffer= (char*) my_realloc(buffer,
|
||||
min(MAX_BUFFER_SIZE,
|
||||
max((uint) (buffer_size*1.5),
|
||||
position + len_arg)), MYF(0));
|
||||
|
Reference in New Issue
Block a user