Navigation Menu

Skip to content

Commit

Permalink
fixed database file path.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikdttr committed Mar 18, 2010
1 parent f2af5ae commit 07e297f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions driver.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion ha_mroonga.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 07e297f

Please sign in to comment.