<!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">2015-08-08 17:57:14 +0900 (Sat, 08 Aug 2015)</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/0996b33d41be390f98dc2575f667920207104548">0996b33d41be390f98dc2575f667920207104548</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, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Fix a crash bug on shutdown when any opening table exists

GitHub: fix <a href="https://github.com/mroonga/mroonga/issues/71">#71</a>

Reported by GMO Media, Inc. Thanks!!!</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/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2">ha_mroonga.cpp</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; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: ha_mroonga.cpp (+4 -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; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2L4548">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2L4549">4549</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2L4550">4550</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2L4551">4551</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/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2L4552">4552</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2L4553">4553</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2L4554">4554</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2L4555">4555</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; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2R4548">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2R4549">4549</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2R4550">4550</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2R4551">4551</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/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2R4552">4552</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/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2R4553">4553</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/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2R4554">4554</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/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2R4555">4555</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2R4556">4556</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2R4557">4557</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/0996b33d41be390f98dc2575f667920207104548#diff-ba714ec217aa6836e39b3aea9da57ae2R4558">4558</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; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -4549,7 +4549,10 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int ha_mroonga::close()</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     DBUG_RETURN(error);</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">-  error = add_wrap_hton(share-&gt;table_name, share-&gt;hton);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  if (thd)</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">+    error = add_wrap_hton(share-&gt;table_name, share-&gt;hton);</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">   bitmap_free(&amp;multiple_column_key_bitmap);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   if (share-&gt;use_count == 1) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     mrn_free_long_term_share(share-&gt;long_term_share);</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>