[Groonga-commit] groonga/groonga [master] grn_ii_buffer: use grn_ii_build() also when multiple columns assigned.

Back to archive index

null+****@clear***** null+****@clear*****
2012年 2月 21日 (火) 06:54:43 JST


Daijiro MORI	2012-02-21 06:54:43 +0900 (Tue, 21 Feb 2012)

  New Revision: 30f0b8a2f89221049fa7030e033caefb48309e5a

  Log:
    grn_ii_buffer: use grn_ii_build() also when multiple columns assigned.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -2)
===================================================================
--- lib/db.c    2012-02-20 20:53:10 +0900 (ac3d2f1)
+++ lib/db.c    2012-02-21 06:54:43 +0900 (632731f)
@@ -5726,8 +5726,7 @@ build_index(grn_ctx *ctx, grn_obj *obj)
     if ((target = GRN_OBJ_TABLEP(src) ? src : grn_ctx_at(ctx, src->header.domain))) {
       int i, ncol = DB_OBJ(obj)->source_size / sizeof(grn_id);
 #ifndef WIN32
-      if (ncol == 1 && !GRN_OBJ_TABLEP(src) &&
-          getenv("USE_OFFLINE_INDEXER") &&
+      if (getenv("USE_OFFLINE_INDEXER") &&
           (!strcmp(getenv("USE_OFFLINE_INDEXER"), "yes"))) {
         grn_ii_build(ctx, (grn_ii *)obj);
       } else




Groonga-commit メーリングリストの案内
Back to archive index