[Commits] Rev 3146: 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
Fri Apr 6 11:51:28 EEST 2012


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

------------------------------------------------------------
revno: 3146
revision-id: holyfoot at askmonty.org-20120406083133-j6s0hqnkaimuct1r
parent: sergii at pisem.net-20120405084938-yfjvf399utw8llpi
committer: Alexey Botchkov <holyfoot at askmonty.org>
branch nick: mdev80
timestamp: Fri 2012-04-06 13:31:33 +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-06 08:31:33 +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