[Groonga-commit] groonga/groonga at df2b499 [master] grn_db_recover: report error for unopenable case

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Dec 25 11:35:29 JST 2015


Kouhei Sutou	2015-12-25 11:35:29 +0900 (Fri, 25 Dec 2015)

  New Revision: df2b49939d574445c6308a7af580ab113864c52c
  https://github.com/groonga/groonga/commit/df2b49939d574445c6308a7af580ab113864c52c

  Message:
    grn_db_recover: report error for unopenable case

  Modified files:
    lib/db.c

  Modified: lib/db.c (+3 -1)
===================================================================
--- lib/db.c    2015-12-23 16:47:08 +0900 (4b2d216)
+++ lib/db.c    2015-12-25 11:35:29 +0900 (5d0c6f1)
@@ -13229,7 +13229,9 @@ grn_db_recover(grn_ctx *ctx, grn_obj *db)
       }
       grn_obj_unlink(ctx, object);
     } else {
-      ERRCLR(ctx);
+      if (id < GRN_N_RESERVED_TYPES) {
+        ERRCLR(ctx);
+      }
     }
 
     if (ctx->rc != GRN_SUCCESS) {
-------------- next part --------------
HTML����������������������������...
다운로드 



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