[Commits] Rev 3145: MDEV-80 Memory engine table full at much less than max_heap_table_size with btree index. in file:///home/hf/wmar/mdev80/

holyfoot at askmonty.org holyfoot at askmonty.org
Thu Apr 5 11:37:47 EEST 2012


At file:///home/hf/wmar/mdev80/

------------------------------------------------------------
revno: 3145
revision-id: holyfoot at askmonty.org-20120405082116-w4xqjil2adoq12r3
parent: sergii at pisem.net-20120404134150-6bonhsdqyrxjhku5
committer: Alexey Botchkov <holyfoot at askmonty.org>
branch nick: mdev80
timestamp: Thu 2012-04-05 13:21:16 +0500
message:
  MDEV-80 Memory engine table full at much less than max_heap_table_size with btree index.
          RB-tree index in the MEMORY table fails if it grews over 4G.
          That happened because the old_allocated variable in hp_rb_write_key()
          had the uint type. Changed with the 'size_t' type to be same as the
          'rb_tree.allocated'.
  
  per-file comments:
    storage/heap/hp_write.c
  MDEV-80 Memory engine table full at much less than max_heap_table_size with btree index.
          uint->size_t for the 'old_allocated'.
-------------- next part --------------
=== modified file 'storage/heap/hp_write.c'
--- a/storage/heap/hp_write.c	2011-11-21 17:13:14 +0000
+++ b/storage/heap/hp_write.c	2012-04-05 08:21:16 +0000
@@ -106,7 +106,7 @@
 		    uchar *recpos)
 {
   heap_rb_param custom_arg;
-  uint old_allocated;
+  size_t old_allocated;
 
   custom_arg.keyseg= keyinfo->seg;
   custom_arg.key_length= hp_rb_make_key(keyinfo, info->recbuf, record, recpos);



More information about the commits mailing list