mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
mysql-5.5.29 merge
This commit is contained in:
@ -303,8 +303,14 @@ int get_topics_for_keyword(THD *thd, TABLE *topics, TABLE *relations,
|
||||
rtopic_id= find_fields[help_relation_help_topic_id].field;
|
||||
rkey_id= find_fields[help_relation_help_keyword_id].field;
|
||||
|
||||
topics->file->ha_index_init(iindex_topic,1);
|
||||
relations->file->ha_index_init(iindex_relations,1);
|
||||
if (topics->file->ha_index_init(iindex_topic,1) ||
|
||||
relations->file->ha_index_init(iindex_relations,1))
|
||||
{
|
||||
if (topics->file->inited)
|
||||
topics->file->ha_index_end();
|
||||
my_message(ER_CORRUPT_HELP_DB, ER(ER_CORRUPT_HELP_DB), MYF(0));
|
||||
DBUG_RETURN(-1);
|
||||
}
|
||||
|
||||
rkey_id->store((longlong) key_id, TRUE);
|
||||
rkey_id->get_key_image(buff, rkey_id->pack_length(), Field::itRAW);
|
||||
|
Reference in New Issue
Block a user