Navigation Menu

Skip to content

Commit

Permalink
use NULL path for lexicon table.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikdttr committed Jun 18, 2009
1 parent c89798e commit ad8fb44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions driver.c
Expand Up @@ -133,7 +133,7 @@ grn_obj *mrn_db_open_or_create(grn_ctx *ctx)
GRN_LOG(ctx, GRN_LOG_DEBUG, "-> grn_db_create: '%s'", MRN_DB_FILE_PATH);
obj = grn_db_create(ctx, MRN_DB_FILE_PATH, NULL);
/* create global lexicon table */
mrn_lexicon_sys = grn_table_create(ctx, "lexicon", 7, MRN_LEXICON_FILE_PATH,
mrn_lexicon_sys = grn_table_create(ctx, "lexicon", 7, NULL,
GRN_OBJ_TABLE_PAT_KEY|GRN_OBJ_PERSISTENT,
grn_ctx_at(mrn_ctx_tls,GRN_DB_SHORTTEXT), 0);
grn_obj_set_info(ctx, mrn_lexicon_sys, GRN_INFO_DEFAULT_TOKENIZER,
Expand All @@ -143,7 +143,7 @@ grn_obj *mrn_db_open_or_create(grn_ctx *ctx)
MRN_LOG(GRN_LOG_DEBUG, "-> grn_db_open: '%s'", MRN_DB_FILE_PATH);
obj = grn_db_open(ctx, MRN_DB_FILE_PATH);
/* open global lexicon table */
mrn_lexicon_sys = grn_table_open(ctx, "lexicon", 7, MRN_LEXICON_FILE_PATH);
mrn_lexicon_sys = grn_table_open(ctx, "lexicon", 7, NULL);
GRN_LOG(ctx, GRN_LOG_DEBUG, "opened lexicon table = %p", mrn_lexicon_sys);
}
return obj;
Expand Down
1 change: 0 additions & 1 deletion driver.h
Expand Up @@ -7,7 +7,6 @@

#define MRN_MAX_KEY_LEN 1024
#define MRN_DB_FILE_PATH "groonga.db"
#define MRN_LEXICON_FILE_PATH "lexicon.grn"
#define MRN_FILE_EXT ".grn"
#define MRN_LOG_FILE_NAME "groonga.log"

Expand Down

0 comments on commit ad8fb44

Please sign in to comment.