Navigation Menu

Skip to content

Commit

Permalink
add missing dbug_tmp_restore_column_map()s.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 8, 2011
1 parent 3baa023 commit fe8843b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ha_mroonga.cc
Expand Up @@ -1482,6 +1482,9 @@ int ha_mroonga::write_row(uchar *buf)
int added;
row_id = grn_table_add(ctx, tbl, pkey, pkey_size, &added);
if (ctx->rc) {
#ifndef DBUG_OFF
dbug_tmp_restore_column_map(table->read_set, tmp_map);
#endif
my_message(ER_ERROR_ON_WRITE, ctx->errbuf, MYF(0));
DBUG_RETURN(ER_ERROR_ON_WRITE);
}
Expand Down Expand Up @@ -1553,6 +1556,9 @@ int ha_mroonga::write_row(uchar *buf)
pthread_mutex_lock(&mrn_allocated_thds_mutex);
if (my_hash_insert(&mrn_allocated_thds, (uchar*) thd))
{
#ifndef DBUG_OFF
dbug_tmp_restore_column_map(table->read_set, tmp_map);
#endif
DBUG_RETURN(HA_ERR_OUT_OF_MEM);
}
pthread_mutex_unlock(&mrn_allocated_thds_mutex);
Expand Down

0 comments on commit fe8843b

Please sign in to comment.