<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">Daijiro MORI <daiji****@gmail*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2013-06-23 18:26:48 +0900 (Sun, 23 Jun 2013)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc">a36a4809d739ebe14159f4cc3b4ded1a64f61ffc</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Stop storing base-table's ID as sub-record</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#diff-0">lib/db.c</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/db.c (+3 -3)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2836">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2837">2837</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2838">2838</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2839">2839</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2840">2840</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2841">2841</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2842">2842</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2843">2843</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2862">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2863">2863</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2864">2864</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2865">2865</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2866">2866</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2867">2867</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2868">2868</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2869">2869</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2964">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2965">2965</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2966">2966</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2967">2967</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2968">2968</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2969">2969</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2970">2970</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0L2971">2971</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2836">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2837">2837</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2838">2838</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2839">2839</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2840">2840</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2841">2841</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2842">2842</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2843">2843</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2862">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2863">2863</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2864">2864</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2865">2865</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2866">2866</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2867">2867</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2868">2868</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2869">2869</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2964">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2965">2965</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2966">2966</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2967">2967</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2968">2968</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2969">2969</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2970">2970</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/a36a4809d739ebe14159f4cc3b4ded1a64f61ffc#L0R2971">2971</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -2837,7 +2837,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">accelerated_table_group(grn_ctx *ctx, grn_obj *table, grn_obj *key, grn_obj *res</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if ((!idp || *((grn_id *)v)) &&</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_table_add_v_inline(ctx, res, v, element_size, &value, NULL)) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_table_add_subrec_inline(res, value, ri ? ri->score : 0,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- (grn_rset_posinfo *)id_, 0);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ (grn_rset_posinfo *)&id, 0);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> GRN_RA_CACHE_FIN(ra, &cache);</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -2863,7 +2863,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">accelerated_table_group(grn_ctx *ctx, grn_obj *table, grn_obj *key, grn_obj *res</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if ((*v != GRN_ID_NIL) &&</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_table_add_v_inline(ctx, res, v, sizeof(grn_id), &value, NULL)) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_table_add_subrec_inline(res, value, ri ? ri->score : 0,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- (grn_rset_posinfo *)id_, 0);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ (grn_rset_posinfo *)&id, 0);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> v++;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> len -= sizeof(grn_id);</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -2965,7 +2965,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_table_group_with_range_gap(grn_ctx *ctx, grn_obj *table,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if ((*v != GRN_ID_NIL) &&</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_table_add_v_inline(ctx, res, v, sizeof(grn_id), &value, NULL)) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_table_add_subrec_inline(res, value, ri ? ri->score : 0,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- (grn_rset_posinfo *)id_, 0);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ (grn_rset_posinfo *)&id, 0);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> v++;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> len -= sizeof(grn_id);</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>