<!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;mir@thaurissan.(none)&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2010-03-25 11:10:56 +0900 (Thu, 25 Mar 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/cbea5e88780c319e1482abb61bd7bb9e12c68bb4">cbea5e88780c319e1482abb61bd7bb9e12c68bb4</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">fixed mutex unlock in mrn_db_open_or_create().</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/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#diff-0">driver.c</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: driver.c (+2 -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/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0L647">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0L648">648</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0L649">649</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0L650">650</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/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0L651">651</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0L652">652</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0L653">653</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0L654">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0L655">655</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0L656">656</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0L657">657</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/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0L658">658</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0L659">659</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0L660">660</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/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R647">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R648">648</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R649">649</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R650">650</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/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R651">651</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R652">652</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R653">653</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R654">654</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R655">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R656">656</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R657">657</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R658">658</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/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R659">659</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R660">660</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R661">661</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/cbea5e88780c319e1482abb61bd7bb9e12c68bb4#L0R662">662</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">@@ -648,6 +648,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int mrn_db_open_or_create(grn_ctx *ctx, mrn_info *info, mrn_object *obj)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">       GRN_LOG(ctx, GRN_LOG_INFO, &quot;database not found. creating...(%s)&quot;, db-&gt;path);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       obj-&gt;db = grn_db_create(ctx, db-&gt;path, NULL);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       if (obj-&gt;db == NULL) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        pthread_mutex_unlock(mrn_lock_db);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         GRN_LOG(ctx, GRN_LOG_ERROR, &quot;cannot create database (%s)&quot;, db-&gt;path);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         return -1;</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">@@ -655,6 +656,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int mrn_db_open_or_create(grn_ctx *ctx, mrn_info *info, mrn_object *obj)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">       obj-&gt;db = grn_db_open(ctx, db-&gt;path);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       if (obj-&gt;db == NULL) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         GRN_LOG(ctx, GRN_LOG_ERROR, &quot;cannot open database (%s)&quot;, db-&gt;path);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+        pthread_mutex_unlock(mrn_lock_db);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         return -1;</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>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>