diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2012-04-06 13:31:33 +0500 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2012-04-06 13:31:33 +0500 |
commit | 357c5f746405790b8dc08cd34e3f2691448cee92 (patch) | |
tree | 08787790c11eafabf517d481423044e3e95a36fb | |
parent | dea3544b2d9bd68961b8e84c3772deda435f15b5 (diff) | |
download | mariadb-git-357c5f746405790b8dc08cd34e3f2691448cee92.tar.gz |
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'.
-rw-r--r-- | storage/heap/hp_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/heap/hp_write.c b/storage/heap/hp_write.c index 5996d9b2682..d67b55b6481 100644 --- a/storage/heap/hp_write.c +++ b/storage/heap/hp_write.c @@ -106,7 +106,7 @@ int hp_rb_write_key(HP_INFO *info, HP_KEYDEF *keyinfo, const uchar *record, 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); |