mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
BUG#11684 fix.
Repair crashes mysql when table has fulltext index.
This commit is contained in:
@ -532,13 +532,15 @@ int thr_write_keys(MI_SORT_PARAM *sort_param)
|
||||
|
||||
while (!got_error &&
|
||||
!my_b_read(&sinfo->tempfile_for_exceptions,(byte*)&key_length,
|
||||
sizeof(key_length)) &&
|
||||
!my_b_read(&sinfo->tempfile_for_exceptions,(byte*)mergebuf,
|
||||
(uint) key_length))
|
||||
sizeof(key_length)))
|
||||
{
|
||||
if (_mi_ck_write(info,sinfo->key,(uchar*) mergebuf,
|
||||
key_length - info->s->rec_reflength))
|
||||
got_error=1;
|
||||
byte ft_buf[HA_FT_MAXLEN + HA_FT_WLEN + 10];
|
||||
if (key_length > sizeof(ft_buf) ||
|
||||
my_b_read(&sinfo->tempfile_for_exceptions, (byte*)ft_buf,
|
||||
(uint)key_length) ||
|
||||
_mi_ck_write(info, sinfo->key, (uchar*)ft_buf,
|
||||
key_length - info->s->rec_reflength))
|
||||
got_error=1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user