Tetsuro IKEDA
null+****@clear*****
Thu Oct 4 10:18:10 JST 2012
Tetsuro IKEDA 2009-02-10 14:29:53 +0900 (Tue, 10 Feb 2009) New Revision: d88ce29bf0e7ea83d384525714d69ce0b37027cc https://github.com/mroonga/mroonga/commit/d88ce29bf0e7ea83d384525714d69ce0b37027cc Log: max identifier length changed to 192 (64chars in utf8) modified: src/ha_groonga.cc modified: src/ha_groonga.h Modified files: src/ha_groonga.cc src/ha_groonga.h Modified: src/ha_groonga.cc (+2 -1) =================================================================== --- src/ha_groonga.cc 2009-02-10 13:05:33 +0900 (df20318) +++ src/ha_groonga.cc 2009-02-10 14:29:53 +0900 (4397fa4) @@ -187,7 +187,8 @@ static int mrn_init(void *p) grn_ctx_init(mrn_ctx_sys, GRN_CTX_USE_DB, GRN_ENC_UTF8); /* hash init */ - + mrn_hash_sys = grn_hash_create(mrn_ctx_sys,NULL,MRN_MAX_IDENTIFIER_LEN,sizeof(size_t), + GRN_OBJ_KEY_VAR_SIZE, GRN_ENC_UTF8); /* log init */ if (!(mrn_log_file = fopen(mrn_log_name, "a"))) { Modified: src/ha_groonga.h (+2 -2) =================================================================== --- src/ha_groonga.h 2009-02-10 13:05:33 +0900 (95df477) +++ src/ha_groonga.h 2009-02-10 14:29:53 +0900 (afb94f8) @@ -1,8 +1,8 @@ #ifndef _ha_groonga_h #define _ha_groonga_h -/* max length for grn_hash key e.g. db,table name */ -#define MRN_MAX_IDENTIFIER_LEN 64 +/* max 64 chars at utf8 */ +#define MRN_MAX_IDENTIFIER_LEN 192 extern grn_ctx *mrn_ctx_sys; extern grn_hash *mrn_hash_sys; -------------- next part -------------- HTML����������������������������...Download