Navigation Menu

Skip to content

Commit

Permalink
max identifier length changed to 192 (64chars in utf8)
Browse files Browse the repository at this point in the history
	modified:   src/ha_groonga.cc
	modified:   src/ha_groonga.h
  • Loading branch information
ikdttr committed Feb 10, 2009
1 parent eb70015 commit d88ce29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/ha_groonga.cc
Expand Up @@ -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"))) {
Expand Down
4 changes: 2 additions & 2 deletions src/ha_groonga.h
@@ -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;
Expand Down

0 comments on commit d88ce29

Please sign in to comment.