Kouhei Sutou
null+****@clear*****
Thu Oct 4 10:35:00 JST 2012
Kouhei Sutou 2011-06-20 16:27:38 +0900 (Mon, 20 Jun 2011) New Revision: 5cfb8a8f05d2e25525465abc27ce3349de619955 https://github.com/mroonga/mroonga/commit/5cfb8a8f05d2e25525465abc27ce3349de619955 Log: [wrapper] cleanup variable definitions. Modified files: ha_mroonga.cc Modified: ha_mroonga.cc (+4 -1) =================================================================== --- ha_mroonga.cc 2011-06-20 16:25:53 +0900 (5bebde5) +++ ha_mroonga.cc 2011-06-20 16:27:38 +0900 (d4498bd) @@ -2631,8 +2631,9 @@ int ha_mroonga::wrapper_write_row_index(uchar *buf) #ifndef DBUG_OFF my_bitmap_map *tmp_map = dbug_tmp_use_all_columns(table, table->read_set); #endif + uint i; + uint n_keys = table->s->keys; for (i = 0; i < n_keys; i++) { - grn_rc rc; KEY key_info = table->key_info[i]; if (key_info.algorithm != HA_KEY_ALG_FULLTEXT) { @@ -2651,6 +2652,8 @@ int ha_mroonga::wrapper_write_row_index(uchar *buf) int new_column_size; mrn_set_buf(ctx, field, &new_value, &new_column_size); + + grn_rc rc; rc = grn_column_index_update(ctx, index_column, record_id, 1, NULL, &new_value); if (rc) { -------------- next part -------------- HTML����������������������������...Download