Navigation Menu

Skip to content

Commit

Permalink
[wrapper] fix crash on ft_read(). fixes #1032
Browse files Browse the repository at this point in the history
index should be initialized before index_read_map().
  • Loading branch information
kou committed Jul 13, 2011
1 parent 9792d71 commit a6f9bb8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ha_mroonga.cc
Expand Up @@ -4367,9 +4367,11 @@ int ha_mroonga::wrapper_ft_read(uchar *buf)
GRN_TEXT_VALUE(&(pkey)), table->key_info->key_length);
MRN_SET_WRAP_SHARE_KEY(share, table->s);
MRN_SET_WRAP_TABLE_KEY(this, table);
error = wrap_handler->index_read_map(
buf, (uchar *) GRN_TEXT_VALUE(&(pkey)), pk_keypart_map,
HA_READ_KEY_EXACT);
error = wrap_handler->index_read_idx_map(buf,
share->wrap_primary_key,
(uchar *)GRN_TEXT_VALUE(&(pkey)),
pk_keypart_map,
HA_READ_KEY_EXACT);
MRN_SET_BASE_SHARE_KEY(share, table->s);
MRN_SET_BASE_TABLE_KEY(this, table);
}
Expand Down

0 comments on commit a6f9bb8

Please sign in to comment.