<!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">2009-05-08 14:52:11 +0900 (Fri, 08 May 2009)</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/d6bc890b925cab59bd4132af34aff64f15c37b83">d6bc890b925cab59bd4132af34aff64f15c37b83</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">use GRN_BULK_INIT instead of revised GRN_OBJ_INIT.</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/d6bc890b925cab59bd4132af34aff64f15c37b83#diff-0">src/ha_groonga.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: src/ha_groonga.cc (+4 -4)</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/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L326">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L327">327</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L328">328</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L329">329</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/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L330">330</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/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L331">331</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L332">332</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L333">333</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L364">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L365">365</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L366">366</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L367">367</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/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L368">368</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/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L369">369</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L370">370</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L371">371</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L439">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L440">440</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L441">441</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L442">442</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/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L443">443</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/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L444">444</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L445">445</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L446">446</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L481">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L482">482</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L483">483</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L484">484</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/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L485">485</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/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L486">486</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L487">487</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0L488">488</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/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R326">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R327">327</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R328">328</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R329">329</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/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R330">330</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R331">331</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R332">332</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R333">333</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R364">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R365">365</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R366">366</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R367">367</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/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R368">368</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R369">369</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R370">370</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R371">371</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R439">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R440">440</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R441">441</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R442">442</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/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R443">443</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R444">444</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R445">445</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R446">446</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R481">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R482">482</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R483">483</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R484">484</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/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R485">485</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R486">486</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R487">487</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d6bc890b925cab59bd4132af34aff64f15c37b83#L0R488">488</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">@@ -327,7 +327,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int ha_groonga::rnd_next(uchar *buf)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">   if (gid != GRN_ID_NIL) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     grn_obj obj;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     int *val;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-    GRN_OBJ_INIT(&amp;obj, GRN_BULK, 0);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    GRN_BULK_INIT(&amp;obj);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre">     Field **mysql_field;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     mrn_field **grn_field;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -365,7 +365,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int ha_groonga::rnd_pos(uchar *buf, uchar *pos)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">   grn_obj obj;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   int pkey_val;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   int *val;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  GRN_OBJ_INIT(&amp;obj, GRN_BULK, 0);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  GRN_BULK_INIT(&amp;obj);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre">   Field **mysql_field;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   mrn_field **grn_field;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -440,7 +440,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int ha_groonga::write_row(uchar *buf)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     MRN_LOG(GRN_LOG_DEBUG, &quot;-&gt; added record w/o pkey, gid=%d&quot;,gid);</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-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  GRN_OBJ_INIT(&amp;wrapper, GRN_BULK, 0);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  GRN_BULK_INIT(&amp;wrapper);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   for (mysql_field = table-&gt;field, grn_field = share-&gt;field, num=0;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">        *mysql_field;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">        mysql_field++, grn_field++, num++) {</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -482,7 +482,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int ha_groonga::index_read(uchar *buf, const uchar *key,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">                          (const void*) key, sizeof(key), &amp;flags);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   MRN_LOG(GRN_LOG_DEBUG, &quot;-&gt; found record: key=%d, gid=%d&quot;,k,gid);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  GRN_OBJ_INIT(&amp;wrapper, GRN_BULK, 0);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  GRN_BULK_INIT(&amp;wrapper);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   for (mysql_field = table-&gt;field, grn_field = share-&gt;field, num=0;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">        *mysql_field;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">        mysql_field++, grn_field++, num++) {</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>