Commit b5f56171 authored by unknown's avatar unknown

bug fixes


myisam/rt_key.c:
  bug fix
myisam/rt_split.c:
  bug fix
parent 7dab2d59
...@@ -56,7 +56,7 @@ int rtree_add_key(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *key, ...@@ -56,7 +56,7 @@ int rtree_add_key(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *key,
} }
return (rtree_split_page(info, keyinfo, page_buf, key, key_length, return (rtree_split_page(info, keyinfo, page_buf, key, key_length,
new_page) ? -1 : 0); new_page) ? -1 : 1);
} }
/* /*
......
...@@ -263,7 +263,7 @@ int rtree_split_page(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page, uchar *key, ...@@ -263,7 +263,7 @@ int rtree_split_page(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page, uchar *key,
int max_keys = (mi_getint(page)-2) / (full_length); int max_keys = (mi_getint(page)-2) / (full_length);
n_dim = (keyinfo->keysegs-1) / 2; n_dim = keyinfo->keysegs / 2;
{ {
int coord_buf_size = n_dim * 2 * sizeof(double) * (max_keys + 1 + 4); int coord_buf_size = n_dim * 2 * sizeof(double) * (max_keys + 1 + 4);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment