<!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">2012-02-15 17:49:47 +0900 (Wed, 15 Feb 2012)</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/00b2fca976ebd43a79bec6b400aabf25eefd7020">00b2fca976ebd43a79bec6b400aabf25eefd7020</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">reduce duplicated codes.</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#diff-0">ha_mroonga.cc</a></li>
          <li><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#diff-1">ha_mroonga.h</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 (+9 -1)</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L3568">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L3569">3569</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L3570">3570</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L3571">3571</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L3572">3572</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L3573">3573</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L3574">3574</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L3575">3575</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L6956">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L6957">6957</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L6958">6958</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L6959">6959</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-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-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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L6960">6960</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L6961">6961</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0L6962">6962</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R3568">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R3569">3569</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R3570">3570</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R3571">3571</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R3572">3572</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R3573">3573</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R3574">3574</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R3575">3575</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6956">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6957">6957</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6958">6958</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6959">6959</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6960">6960</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6961">6961</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6962">6962</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6963">6963</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6964">6964</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6965">6965</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6966">6966</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6967">6967</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6968">6968</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6969">6969</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L0R6970">6970</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">@@ -3569,7 +3569,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int ha_mroonga::delete_table(const char *name)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">   mrn_open_mutex_lock();</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   mrn_free_tmp_table_share(tmp_table_share);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   mrn_open_mutex_unlock();</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  if (name[0] != '.') {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  if (is_temporary_table_name(name)) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     /* temporary table */</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     mrn_drop_db(mrn_hton_ptr, (char *) name);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   }</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -6957,6 +6957,14 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">bool ha_mroonga::is_need_normalize(Field *field) const</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">   DBUG_RETURN(need_normalize_p);</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-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+bool ha_mroonga::is_temporary_table_name(const char *name) const</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+{</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  MRN_DBUG_ENTER_METHOD();</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  DBUG_PRINT(&quot;info&quot;, (&quot;mroonga: table name = %s&quot;, name));</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  bool temporary_table_name_p = (name[0] != '.');</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  DBUG_RETURN(temporary_table_name_p);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+}</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> void ha_mroonga::check_count_skip(key_part_map start_key_part_map,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                                   key_part_map end_key_part_map, bool fulltext)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
      <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.h (+1 -0)</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1L417">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1L418">418</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1L419">419</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1L420">420</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1L421">421</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1L422">422</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1L423">423</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1R417">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1R418">418</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1R419">419</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1R420">420</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/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1R421">421</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1R422">422</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1R423">423</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/00b2fca976ebd43a79bec6b400aabf25eefd7020#L1R424">424</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">@@ -418,6 +418,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">private:</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">   bool is_dry_write();</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   bool is_enable_optimization();</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   bool is_need_normalize(Field *field) const;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  bool is_temporary_table_name(const char *name) const;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   void check_count_skip(key_part_map start_key_part_map,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                         key_part_map end_key_part_map, bool fulltext);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   bool is_groonga_layer_condition(const Item *item,</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>