Kouhei Sutou
null+****@clear*****
Mon Jan 26 23:50:35 JST 2015
Kouhei Sutou 2015-01-26 23:50:35 +0900 (Mon, 26 Jan 2015) New Revision: c04a9339ab3eb15a5f5b9365e57dd49233bad9d7 https://github.com/groonga/groonga/commit/c04a9339ab3eb15a5f5b9365e57dd49233bad9d7 Message: Don't touch on error Modified files: lib/db.c Modified: lib/db.c (+2 -1) =================================================================== --- lib/db.c 2015-01-26 23:05:04 +0900 (171fe41) +++ lib/db.c 2015-01-26 23:50:35 +0900 (8853ddc) @@ -4101,8 +4101,9 @@ grn_column_create(grn_ctx *ctx, grn_obj *table, if (grn_db_obj_init(ctx, db, id, DB_OBJ(res))) { _grn_obj_remove(ctx, res); res = NULL; + } else { + grn_obj_touch(ctx, res, NULL); } - grn_obj_touch(ctx, res, NULL); } exit : if (!res && id) { grn_obj_delete_by_id(ctx, db, id, GRN_TRUE); } -------------- next part -------------- HTML����������������������������...Download