[Groonga-commit] groonga/groonga at de0b9bb [master] Stop to save specs for builtin objects

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Jul 28 15:41:28 JST 2016


Kouhei Sutou	2016-07-28 15:41:28 +0900 (Thu, 28 Jul 2016)

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

  Message:
    Stop to save specs for builtin objects
    
    Because they aren't used.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -0)
===================================================================
--- lib/db.c    2016-07-28 15:19:58 +0900 (165ee61)
+++ lib/db.c    2016-07-28 15:41:28 +0900 (a8d76d2)
@@ -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);
-------------- next part --------------
HTML����������������������������...
下载 



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