[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] use NULL path for lexicon table.

Back to archive index

Tetsuro IKEDA null+****@clear*****
Thu Oct 4 10:18:50 JST 2012


Tetsuro IKEDA	2009-06-18 15:14:35 +0900 (Thu, 18 Jun 2009)

  New Revision: ad8fb44ded428be6a1ddc772acaa3fafc173a6f6
  https://github.com/mroonga/mroonga/commit/ad8fb44ded428be6a1ddc772acaa3fafc173a6f6

  Log:
    use NULL path for lexicon table.

  Modified files:
    driver.c
    driver.h

  Modified: driver.c (+2 -2)
===================================================================
--- driver.c    2009-06-18 15:05:24 +0900 (3572b57)
+++ driver.c    2009-06-18 15:14:35 +0900 (25d1414)
@@ -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,
@@ -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;

  Modified: driver.h (+0 -1)
===================================================================
--- driver.h    2009-06-18 15:05:24 +0900 (8ba55c9)
+++ driver.h    2009-06-18 15:14:35 +0900 (67b8d9f)
@@ -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"
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index