Skip to content

Commit

Permalink
Stop to save specs for builtin objects
Browse files Browse the repository at this point in the history
Because they aren't used.
  • Loading branch information
kou committed Jul 28, 2016
1 parent a336c28 commit de0b9bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/db.c
Expand Up @@ -8153,6 +8153,7 @@ grn_obj_spec_save(grn_ctx *ctx, grn_db_obj *obj)
grn_obj v, *b;
grn_obj_spec spec;
if (obj->id & GRN_OBJ_TMP_OBJECT) { return; }
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; }
GRN_OBJ_INIT(&v, GRN_VECTOR, 0, GRN_DB_TEXT);
Expand Down

0 comments on commit de0b9bb

Please sign in to comment.