Navigation Menu

Skip to content

Commit

Permalink
Stop storing base-table's ID as sub-record
Browse files Browse the repository at this point in the history
  • Loading branch information
daijiro committed Jun 23, 2013
1 parent b99ab8c commit a36a480
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/db.c
Expand Up @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a36a480

Please sign in to comment.