diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2010-09-12 18:28:19 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2010-09-12 18:28:19 +0400 |
commit | ac3756a1d0412114c1e2cb9bb28c940751c8bf94 (patch) | |
tree | 6623d33e6a700f8b2263393485a7cc734ffd3090 /sql/multi_range_read.h | |
parent | b9e5125050a749324819e9e7910673337a706e83 (diff) | |
download | mariadb-git-ac3756a1d0412114c1e2cb9bb28c940751c8bf94.tar.gz |
Debug measure: trash unused buffer space
Diffstat (limited to 'sql/multi_range_read.h')
-rw-r--r-- | sql/multi_range_read.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/multi_range_read.h b/sql/multi_range_read.h index b433dd1b219..4b33b85c199 100644 --- a/sql/multi_range_read.h +++ b/sql/multi_range_read.h @@ -113,7 +113,7 @@ public: start= start_arg; end= end_arg; direction= direction_arg; - // TRASH(start, end - start); + TRASH(start, end - start); reset_for_writing(); } @@ -153,6 +153,8 @@ public: - it is adjacent to buffer space we're using - 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) { end= unused_end; |