<!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">Tetsuro IKEDA &lt;ikdtt****@gmail*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2010-11-17 23:34:26 +0900 (Wed, 17 Nov 2010)</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/674f59c56f0457ef0e94ee3cb06eee50673844f2">674f59c56f0457ef0e94ee3cb06eee50673844f2</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">very small refactoring.</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/674f59c56f0457ef0e94ee3cb06eee50673844f2#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 (+2 -6)</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/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L49">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L50">50</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L51">51</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L52">52</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/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L53">53</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/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L54">54</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L55">55</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L56">56</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/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L57">57</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/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L58">58</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/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L59">59</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/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L60">60</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L61">61</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L62">62</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L630">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L631">631</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L632">632</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L633">633</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/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L634">634</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/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L635">635</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L636">636</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L637">637</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0L638">638</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/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R49">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R50">50</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R51">51</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R52">52</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/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R53">53</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R54">54</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R55">55</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R56">56</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-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/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R57">57</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R58">58</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R59">59</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R60">60</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R628">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R629">629</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R630">630</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R631">631</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/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R632">632</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R633">633</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/674f59c56f0457ef0e94ee3cb06eee50673844f2#L0R634">634</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">@@ -50,13 +50,11 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_obj *mrn_db;</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_hash *mrn_hash;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> pthread_mutex_t db_mutex;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> _ft_vft mrn_ft_vft = {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  NULL,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  NULL, // mrn_ft_read_next</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   mrn_ft_find_relevance,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   mrn_ft_close_search,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   mrn_ft_get_relevance,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  NULL</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-//  mrn_ft_read_next, mrn_ft_find_relevance, mrn_ft_close_search,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-//  mrn_ft_get_relevance, mrn_ft_reinit_search</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  NULL // mrn_ft_reinit_search</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"> /* status */</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -631,8 +629,6 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">float mrn_ft_find_relevance(FT_INFO *handler, uchar *record, uint length)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre">     if (res &amp;&amp; res-&gt;header.flags &amp; GRN_OBJ_WITH_SUBREC) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       float score;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      grn_obj buf;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      GRN_INT32_INIT(&amp;buf,0);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       grn_id res_id = grn_table_get(ctx, res, &amp;rid, sizeof(rid));</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       if (res_id != GRN_ID_NIL) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         return (float) -1.0;</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>