Kouhei Sutou
null+****@clear*****
Thu Jul 28 15:42:44 JST 2016
Kouhei Sutou 2016-07-28 15:42:44 +0900 (Thu, 28 Jul 2016) New Revision: 7a73b6b69edc4559ee41bcb2621baf778400f912 https://github.com/groonga/groonga/commit/7a73b6b69edc4559ee41bcb2621baf778400f912 Message: Stop to save specs for builtin procs Because they aren't used. Modified files: lib/db.c Modified: lib/db.c (+3 -0) =================================================================== --- lib/db.c 2016-07-28 15:41:28 +0900 (a8d76d2) +++ lib/db.c 2016-07-28 15:42:44 +0900 (caa7c17) @@ -8156,6 +8156,9 @@ grn_obj_spec_save(grn_ctx *ctx, grn_db_obj *obj) if (grn_id_is_builtin(ctx, obj->id)) { return; } if (!ctx->impl || !GRN_DB_OBJP(obj)) { return; } if (!(s = (grn_db *)ctx->impl->db) || !s->specs) { return; } + if (obj->header.type == GRN_PROC && obj->range == GRN_ID_NIL) { + return; + } GRN_OBJ_INIT(&v, GRN_VECTOR, 0, GRN_DB_TEXT); if (!(b = grn_vector_body(ctx, &v))) { return; } spec.header = obj->header; -------------- next part -------------- HTML����������������������������... 下载