[Groonga-commit] groonga/groonga [master] fix error message on grn_db_open(). #97

Back to archive index

null+****@clear***** null+****@clear*****
2010年 6月 25日 (金) 12:52:15 JST


Kouhei Sutou	2010-06-25 03:52:15 +0000 (Fri, 25 Jun 2010)

  New Revision: f1a0b070ebbc1cd20e65502b1f9add053176cbca

  Log:
    fix error message on grn_db_open(). #97

  Modified files:
    lib/db.c
    src/groonga.c

  Modified: lib/db.c (+0 -2)
===================================================================
--- lib/db.c    2010-06-25 03:50:11 +0000 (621c267)
+++ lib/db.c    2010-06-25 03:52:15 +0000 (5b4ca2c)
@@ -99,8 +99,6 @@ grn_db_create(grn_ctx *ctx, const char *path, grn_db_create_optarg *optarg)
         }
         grn_pat_close(ctx, s->keys);
         grn_pat_remove(ctx, path);
-      } else {
-        ERR(GRN_NO_MEMORY_AVAILABLE, "s->keys create failed");
       }
       grn_tiny_array_fin(&s->values);
       GRN_FREE(s);

  Modified: src/groonga.c (+1 -1)
===================================================================
--- src/groonga.c    2010-06-25 03:50:11 +0000 (2494892)
+++ src/groonga.c    2010-06-25 03:52:15 +0000 (e4f17e3)
@@ -222,7 +222,7 @@ do_alone(int argc, char **argv)
     }
     grn_obj_close(ctx, db);
   } else {
-    fprintf(stderr, "db open failed (%s)\n", path);
+    fprintf(stderr, "db open failed (%s): %s\n", path, ctx->errbuf);
   }
   grn_ctx_fin(ctx);
   return rc;




Groonga-commit メーリングリストの案内
Back to archive index