[Commits] Rev 2826: Debug measure: trash unused buffer space in file:///home/psergey/dev2/maria-5.3-dsmrr-cpk-r5/

Sergey Petrunya psergey at askmonty.org
Sun Sep 12 17:28:21 EEST 2010


At file:///home/psergey/dev2/maria-5.3-dsmrr-cpk-r5/

------------------------------------------------------------
revno: 2826
revision-id: psergey at askmonty.org-20100912142819-vqg1d90f1ur5zutz
parent: psergey at askmonty.org-20100912092125-a0q9hotxckgnkomz
committer: Sergey Petrunya <psergey at askmonty.org>
branch nick: maria-5.3-dsmrr-cpk-r5
timestamp: Sun 2010-09-12 18:28:19 +0400
message:
  Debug measure: trash unused buffer space
=== modified file 'sql/multi_range_read.h'
--- a/sql/multi_range_read.h	2010-09-10 16:48:11 +0000
+++ b/sql/multi_range_read.h	2010-09-12 14:28:19 +0000
@@ -113,7 +113,7 @@
     start= start_arg;
     end= end_arg;
     direction= direction_arg;
-  //  TRASH(start, end - start);
+    TRASH(start, end - start);
     reset_for_writing();
   }
   
@@ -153,6 +153,8 @@
       - 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;



More information about the commits mailing list