Navigation Menu

Skip to content

Commit

Permalink
Remove needless index number
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 15, 2014
1 parent ca6e2a5 commit ce9badf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ha_mroonga.cpp
Expand Up @@ -5347,7 +5347,7 @@ int ha_mroonga::storage_write_row(uchar *buf)

if ((error = storage_write_row_unique_indexes(buf)))
{
goto err2;
goto err;
}

grn_obj colbuf;
Expand Down Expand Up @@ -5375,12 +5375,12 @@ int ha_mroonga::storage_write_row(uchar *buf)
error = mrn_change_encoding(ctx, field->charset());
if (error) {
grn_obj_unlink(ctx, &colbuf);
goto err2;
goto err;
}
error = generic_store_bulk(field, &colbuf);
if (error) {
grn_obj_unlink(ctx, &colbuf);
goto err2;
goto err;
}
if (added && is_grn_zero_column_value(grn_columns[i], &colbuf)) {
// WORKAROUND: groonga can't index newly added '0' value for
Expand All @@ -5397,22 +5397,22 @@ int ha_mroonga::storage_write_row(uchar *buf)
grn_obj_unlink(ctx, &colbuf);
my_message(ER_ERROR_ON_WRITE, ctx->errbuf, MYF(0));
error = ER_ERROR_ON_WRITE;
goto err2;
goto err;
}
}
grn_obj_unlink(ctx, &colbuf);

error = storage_write_row_multiple_column_indexes(buf, record_id);
if (error) {
goto err2;
goto err;
}

// for UDF last_insert_grn_id()
st_mrn_slot_data *slot_data;
slot_data = mrn_get_slot_data(thd, true);
if (slot_data == NULL) {
error = HA_ERR_OUT_OF_MEM;
goto err2;
goto err;
}
slot_data->last_insert_record_id = record_id;

Expand All @@ -5439,7 +5439,7 @@ int ha_mroonga::storage_write_row(uchar *buf)
}
DBUG_RETURN(0);

err2:
err:
for (j = 0; j < table->s->keys; j++) {
if (j == pkey_nr) {
continue;
Expand Down Expand Up @@ -12856,7 +12856,7 @@ bool ha_mroonga::storage_check_if_incompatible_data(
for (uint i = 0; i < n; i++) {
Field *field = table->field[i];
if (field->flags & FIELD_IS_RENAMED) {
return COMPATIBLE_DATA_NO;
DBUG_RETURN(COMPATIBLE_DATA_NO);
}
}
DBUG_RETURN(COMPATIBLE_DATA_YES);
Expand Down

0 comments on commit ce9badf

Please sign in to comment.