summaryrefslogtreecommitdiff
path: root/heap
diff options
context:
space:
mode:
authorunknown <pappa@c-4a09e253.1238-1-64736c10.cust.bredbandsbolaget.se>2005-08-20 10:07:46 -0400
committerunknown <pappa@c-4a09e253.1238-1-64736c10.cust.bredbandsbolaget.se>2005-08-20 10:07:46 -0400
commitad8c5c9df914366314cd01832521c818b997a21e (patch)
tree25ebb3f1eeb5715dde3b76999cec863702d56352 /heap
parenta8031724acf5cd91039d089d8aefecae9b42d60f (diff)
downloadmariadb-git-ad8c5c9df914366314cd01832521c818b997a21e.tar.gz
Bug #12460 Table Full
On 64 bit platforms the changed statement doesn't work so making sure that the larger value is first and using subtraction is a quick and backwards-compatible fix of this line.
Diffstat (limited to 'heap')
-rw-r--r--heap/hp_delete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/heap/hp_delete.c b/heap/hp_delete.c
index 9cf8b8936b6..90e537081d3 100644
--- a/heap/hp_delete.c
+++ b/heap/hp_delete.c
@@ -80,7 +80,7 @@ int hp_rb_delete_key(HP_INFO *info, register HP_KEYDEF *keyinfo,
custom_arg.search_flag= SEARCH_SAME;
old_allocated= keyinfo->rb_tree.allocated;
res= tree_delete(&keyinfo->rb_tree, info->recbuf, &custom_arg);
- info->s->index_length+= (keyinfo->rb_tree.allocated-old_allocated);
+ info->s->index_length-= (old_allocated - keyinfo->rb_tree.allocated);
return res;
}