mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge chilla.local:/home/mydev/mysql-4.1-bug25673
into chilla.local:/home/mydev/mysql-5.0-bug25673 myisam/rt_index.c: Auto merged
This commit is contained in:
@ -634,14 +634,14 @@ static int rtree_insert_level(MI_INFO *info, uint keynr, uchar *key,
|
|||||||
int res;
|
int res;
|
||||||
|
|
||||||
if ((old_root = _mi_new(info, keyinfo, DFLT_INIT_HITS)) == HA_OFFSET_ERROR)
|
if ((old_root = _mi_new(info, keyinfo, DFLT_INIT_HITS)) == HA_OFFSET_ERROR)
|
||||||
return -1;
|
DBUG_RETURN(-1);
|
||||||
info->buff_used = 1;
|
info->buff_used = 1;
|
||||||
mi_putint(info->buff, 2, 0);
|
mi_putint(info->buff, 2, 0);
|
||||||
res = rtree_add_key(info, keyinfo, key, key_length, info->buff, NULL);
|
res = rtree_add_key(info, keyinfo, key, key_length, info->buff, NULL);
|
||||||
if (_mi_write_keypage(info, keyinfo, old_root, DFLT_INIT_HITS, info->buff))
|
if (_mi_write_keypage(info, keyinfo, old_root, DFLT_INIT_HITS, info->buff))
|
||||||
return 1;
|
DBUG_RETURN(1);
|
||||||
info->s->state.key_root[keynr] = old_root;
|
info->s->state.key_root[keynr] = old_root;
|
||||||
return res;
|
DBUG_RETURN(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ((res = rtree_insert_req(info, keyinfo, key, key_length,
|
switch ((res = rtree_insert_req(info, keyinfo, key, key_length,
|
||||||
|
Reference in New Issue
Block a user