[Groonga-commit] ranguba/rroonga at 9cfb4fb [master] Use domain on initialization to reduce reinit

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Oct 19 20:11:21 JST 2014


Kouhei Sutou	2014-10-19 20:11:21 +0900 (Sun, 19 Oct 2014)

  New Revision: 9cfb4fb7d4c477866e15b26cf5c6fd5d176b3f08
  https://github.com/ranguba/rroonga/commit/9cfb4fb7d4c477866e15b26cf5c6fd5d176b3f08

  Message:
    Use domain on initialization to reduce reinit

  Modified files:
    ext/groonga/rb-grn-utils.c

  Modified: ext/groonga/rb-grn-utils.c (+1 -1)
===================================================================
--- ext/groonga/rb-grn-utils.c    2014-10-19 20:09:50 +0900 (baeca0b)
+++ ext/groonga/rb-grn-utils.c    2014-10-19 20:11:21 +0900 (a86e0ca)
@@ -624,7 +624,7 @@ rb_grn_bulk_from_ruby_object_with_type (VALUE object, grn_ctx *context,
     }
 
     if (!bulk) {
-        bulk = grn_obj_open(context, GRN_BULK, flags, GRN_ID_NIL);
+        bulk = grn_obj_open(context, GRN_BULK, flags, type_id);
         rb_grn_context_check(context, object);
     }
     if (bulk->header.domain != type_id) {
-------------- next part --------------
HTML����������������������������...
Download 



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