[Groonga-commit] groonga/groonga at a36a480 [master] Stop storing base-table's ID as sub-record

Back to archive index

Daijiro MORI null+****@clear*****
Sun Jun 23 18:26:48 JST 2013


Daijiro MORI	2013-06-23 18:26:48 +0900 (Sun, 23 Jun 2013)

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

  Message:
    Stop storing base-table's ID as sub-record

  Modified files:
    lib/db.c

  Modified: lib/db.c (+3 -3)
===================================================================
--- lib/db.c    2013-06-21 18:13:11 +0900 (6a4f54d)
+++ lib/db.c    2013-06-23 18:26:48 +0900 (16cf558)
@@ -2837,7 +2837,7 @@ accelerated_table_group(grn_ctx *ctx, grn_obj *table, grn_obj *key, grn_obj *res
               if ((!idp || *((grn_id *)v)) &&
                   grn_table_add_v_inline(ctx, res, v, element_size, &value, NULL)) {
                 grn_table_add_subrec_inline(res, value, ri ? ri->score : 0,
-                                            (grn_rset_posinfo *)id_, 0);
+                                            (grn_rset_posinfo *)&id, 0);
               }
             }
             GRN_RA_CACHE_FIN(ra, &cache);
@@ -2863,7 +2863,7 @@ accelerated_table_group(grn_ctx *ctx, grn_obj *table, grn_obj *key, grn_obj *res
                   if ((*v != GRN_ID_NIL) &&
                       grn_table_add_v_inline(ctx, res, v, sizeof(grn_id), &value, NULL)) {
                     grn_table_add_subrec_inline(res, value, ri ? ri->score : 0,
-                                                (grn_rset_posinfo *)id_, 0);
+                                                (grn_rset_posinfo *)&id, 0);
                   }
                   v++;
                   len -= sizeof(grn_id);
@@ -2965,7 +2965,7 @@ grn_table_group_with_range_gap(grn_ctx *ctx, grn_obj *table,
                   if ((*v != GRN_ID_NIL) &&
                       grn_table_add_v_inline(ctx, res, v, sizeof(grn_id), &value, NULL)) {
                     grn_table_add_subrec_inline(res, value, ri ? ri->score : 0,
-                                                (grn_rset_posinfo *)id_, 0);
+                                                (grn_rset_posinfo *)&id, 0);
                   }
                   v++;
                   len -= sizeof(grn_id);
-------------- next part --------------
HTML����������������������������...
Download 



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