[Groonga-commit] groonga/groonga at 1328c64 [master] Ensure writing database content on creating new database

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 1 23:54:13 JST 2015


Kouhei Sutou	2015-10-01 23:54:13 +0900 (Thu, 01 Oct 2015)

  New Revision: 1328c64fc539135dd33c18b725df2ee6a0e6c98e
  https://github.com/groonga/groonga/commit/1328c64fc539135dd33c18b725df2ee6a0e6c98e

  Message:
    Ensure writing database content on creating new database

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -0)
===================================================================
--- lib/db.c    2015-10-01 19:39:09 +0900 (6db1daf)
+++ lib/db.c    2015-10-01 23:54:13 +0900 (2332ad5)
@@ -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,
-------------- next part --------------
HTML����������������������������...
Download 



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