Kouhei Sutou
null+****@clear*****
Tue Aug 14 11:34:35 JST 2012
Kouhei Sutou 2012-08-14 11:34:35 +0900 (Tue, 14 Aug 2012) New Revision: 8225137a015d2969de28a50431e8b8acd8717767 https://github.com/groonga/groonga/commit/8225137a015d2969de28a50431e8b8acd8717767 Log: clearlock: fix backward incompatibility A database that is create by groonga <= 2.0.3 has "add" command in database but "add" command doesn't load by default since groonga >= 2.0.4. So "object not found" error is occurred by traversing all objects in the old database. But it can be ignored because it's not desired backward incompatibility. Modified files: lib/db.c Modified: lib/db.c (+4 -0) =================================================================== --- lib/db.c 2012-08-14 11:27:02 +0900 (c4417dd) +++ lib/db.c 2012-08-14 11:34:35 +0900 (1b3d051) @@ -7463,6 +7463,10 @@ grn_obj_clear_lock(grn_ctx *ctx, grn_obj *obj) case GRN_TABLE_NO_KEY: grn_obj_clear_lock(ctx, tbl); } + } else { + if (ctx->rc != GRN_SUCCESS) { + ERRCLR(ctx); + } } } grn_table_cursor_close(ctx, cur); -------------- next part -------------- HTML����������������������������... 다운로드