[Groonga-mysql-commit] mroonga/mroonga [master] [storage] idx_tbl_flags -> index_table_flags.

アーカイブの一覧に戻る

null+****@clear***** null+****@clear*****
2011年 9月 23日 (金) 22:03:22 JST


Kouhei Sutou	2011-09-23 13:03:22 +0000 (Fri, 23 Sep 2011)

  New Revision: ed316e3e1261e42109724e46360d48652f692e11

  Log:
    [storage] idx_tbl_flags -> index_table_flags.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+6 -6)
===================================================================
--- ha_mroonga.cc    2011-09-23 12:21:01 +0000 (d69640e)
+++ ha_mroonga.cc    2011-09-23 13:03:22 +0000 (ef22793)
@@ -1640,7 +1640,7 @@ int ha_mroonga::storage_create(const char *name, TABLE *table,
     KEY key_info = table->s->key_info[i];
 
     int key_parts = key_info.key_parts;
-    grn_obj_flags idx_tbl_flags = GRN_OBJ_PERSISTENT;
+    grn_obj_flags index_table_flags = GRN_OBJ_PERSISTENT;
     if (key_parts == 1) {
       Field *field = key_info.key_part[0].field;
       const char *column_name = field->field_name;
@@ -1655,7 +1655,7 @@ int ha_mroonga::storage_create(const char *name, TABLE *table,
       int mysql_field_type = field->type();
       grn_builtin_type groonga_type = mrn_get_type(ctx, mysql_field_type);
       index_type = grn_ctx_at(ctx, groonga_type);
-      idx_tbl_flags |= GRN_OBJ_KEY_NORMALIZE;
+      index_table_flags |= GRN_OBJ_KEY_NORMALIZE;
     } else {
       index_type = grn_ctx_at(ctx, GRN_DB_SHORT_TEXT);
     }
@@ -1667,15 +1667,15 @@ int ha_mroonga::storage_create(const char *name, TABLE *table,
 
     int key_alg = key_info.algorithm;
     if (key_alg == HA_KEY_ALG_FULLTEXT) {
-      idx_tbl_flags |= GRN_OBJ_TABLE_PAT_KEY;
+      index_table_flags |= GRN_OBJ_TABLE_PAT_KEY;
     } else if (key_alg == HA_KEY_ALG_HASH) {
-      idx_tbl_flags |= GRN_OBJ_TABLE_HASH_KEY;
+      index_table_flags |= GRN_OBJ_TABLE_HASH_KEY;
     } else {
-      idx_tbl_flags |= GRN_OBJ_TABLE_PAT_KEY;
+      index_table_flags |= GRN_OBJ_TABLE_PAT_KEY;
     }
 
     idx_tbl_obj = grn_table_create(ctx, idx_name, strlen(idx_name), NULL,
-                                   idx_tbl_flags, index_type, 0);
+                                   index_table_flags, index_type, 0);
     if (ctx->rc) {
       grn_obj_remove(ctx, tbl_obj);
       error = ER_CANT_CREATE_TABLE;




Groonga-mysql-commit メーリングリストの案内
アーカイブの一覧に戻る