Commit ac3756a1 authored by Sergey Petrunya's avatar Sergey Petrunya

Debug measure: trash unused buffer space

parent b9e51250
...@@ -113,7 +113,7 @@ public: ...@@ -113,7 +113,7 @@ public:
start= start_arg; start= start_arg;
end= end_arg; end= end_arg;
direction= direction_arg; direction= direction_arg;
// TRASH(start, end - start); TRASH(start, end - start);
reset_for_writing(); reset_for_writing();
} }
...@@ -153,6 +153,8 @@ public: ...@@ -153,6 +153,8 @@ public:
- it is adjacent to buffer space we're using - it is adjacent to buffer space we're using
- it is on the end towards which we grow. - it is on the end towards which we grow.
*/ */
DBUG_ASSERT(unused_end > unused_start);
TRASH(unused_start, unused_end - unused_start);
if (direction == 1 && end == unused_start) if (direction == 1 && end == unused_start)
{ {
end= unused_end; end= unused_end;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment