[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] fixed database file path.

Back to archive index

Tetsuro IKEDA null+****@clear*****
Thu Oct 4 10:20:04 JST 2012


Tetsuro IKEDA	2010-03-18 10:30:23 +0900 (Thu, 18 Mar 2010)

  New Revision: 07e297f169802d79b9a1efb989c9bdabee9a49e8
  https://github.com/mroonga/mroonga/commit/07e297f169802d79b9a1efb989c9bdabee9a49e8

  Log:
    fixed database file path.

  Modified files:
    driver.c
    ha_mroonga.cc

  Modified: driver.c (+1 -0)
===================================================================
--- driver.c    2010-03-17 19:38:26 +0900 (86ae5eb)
+++ driver.c    2010-03-18 10:30:23 +0900 (66f82ef)
@@ -310,6 +310,7 @@ int mrn_create(grn_ctx *ctx, mrn_info *info)
   {
     if ((db->obj = grn_db_open(ctx, db->path)) == NULL)
     {
+      GRN_LOG(ctx, GRN_LOG_INFO, "database not found. creating...(%s)", db->path);
       db->obj = grn_db_create(ctx, db->path, NULL);
     }
     mrn_hash_put(ctx, db->name, db->obj);

  Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc    2010-03-17 19:38:26 +0900 (a33eaa9)
+++ ha_mroonga.cc    2010-03-18 10:30:23 +0900 (507c718)
@@ -801,7 +801,7 @@ int ha_mroonga::convert_info(const char *name, TABLE_SHARE *share, mrn_info **_m
   db = minfo->db;
   db->name = share->db.str;
   db->name_size = share->db.length;
-  memcpy(db->path, db->name, db->name_size);
+  memcpy(db->path, db->name, db->name_size+1);
   strncat(db->path, MRN_DB_FILE_NAME, 32);
 
   table = minfo->table;
-------------- next part --------------
HTML����������������������������...
Download 



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