[Groonga-mysql-commit] mroonga/mroonga [master] storage: don't normalize key for multiple column index

Back to archive index

null+****@clear***** null+****@clear*****
2012年 5月 28日 (月) 23:48:33 JST


Kouhei Sutou	2012-05-28 23:48:33 +0900 (Mon, 28 May 2012)

  New Revision: db6f8f57f57b1c4c01b36d2dc7fa8c1ec484e62f

  Log:
    storage: don't normalize key for multiple column index
    
    This is incompatible change.
    You need to recreate multiple column index defined by mroonga 2.02 or
    ealier. You can recreate index online by DROP INDEX and ADD INDEX.

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+2 -2)
===================================================================
--- ha_mroonga.cpp    2012-05-28 23:45:13 +0900 (1612927)
+++ ha_mroonga.cpp    2012-05-28 23:48:33 +0900 (270e448)
@@ -2729,8 +2729,8 @@ int ha_mroonga::storage_create_index(TABLE *table, const char *grn_table_name,
     index_table_flags |= GRN_OBJ_TABLE_HASH_KEY;
   } else {
     index_table_flags |= GRN_OBJ_TABLE_PAT_KEY;
-    if (is_need_normalize(&key_info->key_part->field[0]))
-    {
+    if (!is_multiple_column_index &&
+        is_need_normalize(&key_info->key_part->field[0])) {
       index_table_flags |= GRN_OBJ_KEY_NORMALIZE;
     }
   }




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