[Groonga-commit] groonga/groonga [master] Fix offline index construction for index of _key

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Nov 9 17:43:14 JST 2012


Kouhei Sutou	2012-11-09 17:43:14 +0900 (Fri, 09 Nov 2012)

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

  Log:
    Fix offline index construction for index of _key
    
    Type of _key value buffer was wrong.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+4 -0)
===================================================================
--- lib/db.c    2012-11-09 17:37:51 +0900 (7e71215)
+++ lib/db.c    2012-11-09 17:43:14 +0900 (a35bba0)
@@ -7379,6 +7379,10 @@ grn_obj_reinit_for(grn_ctx *ctx, grn_obj *obj, grn_obj *domain_obj)
   }
 
   grn_obj_get_range_info(ctx, domain_obj, &domain, &flags);
+  if (GRN_OBJ_TABLEP(domain_obj) &&
+      domain_obj->header.type != GRN_TABLE_NO_KEY) {
+    domain = domain_obj->header.domain;
+  }
   return grn_obj_reinit(ctx, obj, domain, flags);
 }
 
-------------- next part --------------
HTML����������������������������...
Download 



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