Navigation Menu

Skip to content

Commit

Permalink
Must use thd_alloc() instead of thd->alloc() refs #1964
Browse files Browse the repository at this point in the history
  • Loading branch information
shibakentoku committed Nov 20, 2013
1 parent 8fd9076 commit 4f0ddcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cpp
Expand Up @@ -13411,7 +13411,7 @@ int ha_mroonga::wrapper_add_index(TABLE *table_arg, KEY *key_info,
char **key_parser;
uint *key_parser_length;
MRN_DBUG_ENTER_METHOD();
KEY *wrap_key_info = (KEY *) thd->alloc(sizeof(KEY) * num_of_keys);
KEY *wrap_key_info = (KEY *) thd_alloc(thd, sizeof(KEY) * num_of_keys);
KEY *p_key_info = &table->key_info[table_share->primary_key], *tmp_key_info;
tmp_table_share.keys = n_keys + num_of_keys;
if (!(tmp_share = (MRN_SHARE *)
Expand Down

0 comments on commit 4f0ddcd

Please sign in to comment.