Navigation Menu

Skip to content

Commit

Permalink
Ensure writing database content on creating new database
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 1, 2015
1 parent 3267354 commit 1328c64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/db.c
Expand Up @@ -218,6 +218,7 @@ grn_db_create(grn_ctx *ctx, const char *path, grn_db_create_optarg *optarg)
if ((s->specs = grn_ja_create(ctx, specs_path, 65536, 0))) {
grn_ctx_use(ctx, (grn_obj *)s);
grn_db_init_builtin_types(ctx);
grn_obj_flush(ctx, (grn_obj *)s);
GRN_API_RETURN((grn_obj *)s);
} else {
ERR(GRN_NO_MEMORY_AVAILABLE,
Expand Down

0 comments on commit 1328c64

Please sign in to comment.