1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix a number of problems with reverse buffer use

This commit is contained in:
Sergey Petrunya
2010-08-12 23:59:29 +04:00
parent 8d07c16ad9
commit d098596ba5
2 changed files with 21 additions and 5 deletions

View File

@ -102,14 +102,25 @@ public:
{
*unused_start= start;
*unused_end= read_pos;
start= read_pos;
}
else
{
*unused_start=read_pos;
*unused_end=end;
*unused_start= read_pos;
*unused_end= end;
end= read_pos;
}
}
void flip()
{
uchar *tmp= read_pos;
read_pos= write_pos;
write_pos= tmp;
direction= -direction;
}
bool is_reverse() { return direction == -1; }
void grow(uchar *unused_start, uchar *unused_end)
{
/*