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:
@ -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)
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user