<!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">Kouhei Sutou &lt;kou****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2011-09-25 20:28:07 +0900 (Sun, 25 Sep 2011)</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/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd">0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd</a></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Log</dt>
      <dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em">[wrapper] use meaningful name.</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/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#diff-0">ha_mroonga.cc</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, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: ha_mroonga.cc (+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, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5028">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5029">5029</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5030">5030</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5031">5031</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5032">5032</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5033">5033</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5034">5034</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5035">5035</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5036">5036</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5037">5037</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5038">5038</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5039">5039</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5040">5040</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5041">5041</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0L5042">5042</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5028">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5029">5029</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5030">5030</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5031">5031</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5032">5032</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5033">5033</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5034">5034</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5035">5035</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5036">5036</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5037">5037</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5038">5038</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5039">5039</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5040">5040</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5041">5041</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0c44d6b5d3893bd3dea08b0af9408d3acb1f16cd#L0R5042">5042</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -5029,14 +5029,14 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int ha_mroonga::wrapper_ft_read(uchar *buf)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">   int error;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   MRN_DBUG_ENTER_METHOD();</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   do {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-    record_id = grn_table_cursor_next(ctx, cursor);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-    if (record_id == GRN_ID_NIL) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    grn_id found_record_id = grn_table_cursor_next(ctx, cursor);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    if (found_record_id == GRN_ID_NIL) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       error = HA_ERR_END_OF_FILE;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       clear_cursor();</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       break;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     } else {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       GRN_BULK_REWIND(&amp;pkey);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      grn_obj_get_value(ctx, key_accessor, record_id, &amp;pkey);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      grn_obj_get_value(ctx, key_accessor, found_record_id, &amp;pkey);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       MRN_SET_WRAP_SHARE_KEY(share, table-&gt;s);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       MRN_SET_WRAP_TABLE_KEY(this, table);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #ifdef MRN_HANDLER_HAVE_HA_INDEX_READ_IDX_MAP</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>