[Groonga-mysql-commit] mroonga/mroonga [master] [wrapper] cleanup variable definitions.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 6月 20日 (月) 16:27:38 JST


Kouhei Sutou	2011-06-20 07:27:38 +0000 (Mon, 20 Jun 2011)

  New Revision: 5cfb8a8f05d2e25525465abc27ce3349de619955

  Log:
    [wrapper] cleanup variable definitions.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+4 -1)
===================================================================
--- ha_mroonga.cc    2011-06-20 07:25:53 +0000 (5bebde5)
+++ ha_mroonga.cc    2011-06-20 07:27:38 +0000 (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) {




Groonga-mysql-commit メーリングリストの案内
Back to archive index