Navigation Menu

Skip to content

Commit

Permalink
fixed warning at adding index. refs #1168
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentoku committed Nov 27, 2011
1 parent ab791c1 commit 31eed32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ha_mroonga.cc
Expand Up @@ -7852,8 +7852,10 @@ int ha_mroonga::wrapper_add_index(TABLE *table_arg, KEY *key_info,
if (!res && i > j &&
(mrn_lock_type != F_UNLCK || !(res = wrapper_external_lock(thd, F_WRLCK)))
) {
if (!(res = wrapper_rnd_init(TRUE)))
{
if (
!(res = wrapper_start_stmt(thd, thr_lock_data.type)) &&
!(res = wrapper_rnd_init(TRUE))
) {
grn_obj key;
GRN_TEXT_INIT(&key, 0);
grn_bulk_space(ctx, &key, p_key_info->key_length);
Expand Down

0 comments on commit 31eed32

Please sign in to comment.