mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
bug fixes
This commit is contained in:
parent
6adf0c115b
commit
907a81afb2
3 changed files with 3 additions and 3 deletions
|
@ -785,7 +785,7 @@ int rtree_delete(MI_INFO *info, uint keynr, uchar *key, uint key_length)
|
|||
goto err1;
|
||||
}
|
||||
if (ReinsertList.pages)
|
||||
free(ReinsertList.pages);
|
||||
my_free((byte*) ReinsertList.pages, MYF(0));
|
||||
|
||||
/* check for redundant root (not leaf, 1 child) and eliminate */
|
||||
if ((old_root = info->s->state.key_root[keynr]) == HA_OFFSET_ERROR)
|
||||
|
|
|
@ -69,7 +69,7 @@ int rtree_delete_key(MI_INFO *info, uchar *page_buf, uchar *key,
|
|||
uchar *key_start;
|
||||
|
||||
key_start= key - nod_flag;
|
||||
if (nod_flag)
|
||||
if (!nod_flag)
|
||||
key_length += info->s->base.rec_reflength;
|
||||
|
||||
memmove(key_start, key + key_length, page_size - key_length -
|
||||
|
|
|
@ -55,7 +55,7 @@ int run_test(const char *filename)
|
|||
int key_type=HA_KEYTYPE_DOUBLE;
|
||||
int key_length=8;
|
||||
int null_fields=0;
|
||||
int nrecords=30;
|
||||
int nrecords=300;
|
||||
int rec_length=0;
|
||||
int uniques=0;
|
||||
int i;
|
||||
|
|
Loading…
Reference in a new issue