<!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 <kou****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2012-04-26 23:40:07 +0900 (Thu, 26 Apr 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/6db53e35732b701f032b2c4d22af10eca4f9f850">6db53e35732b701f032b2c4d22af10eca4f9f850</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, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em">Clear logger after grn_fin() to enable log in grn_fin()</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/6db53e35732b701f032b2c4d22af10eca4f9f850#diff-0">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, "Liberation Mono", 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.cpp (+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, "Liberation Mono", 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/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1395">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1396">1396</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1397">1397</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1398">1398</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/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1399">1399</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1400">1400</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1401">1401</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1402">1402</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1405">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1406">1406</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1407">1407</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1408">1408</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1409">1409</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1410">1410</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1411">1411</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1412">1412</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/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1413">1413</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/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1414">1414</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/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1415">1415</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1416">1416</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1417">1417</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0L1418">1418</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", 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/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1395">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1396">1396</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1397">1397</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1398">1398</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1399">1399</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1400">1400</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1401">1401</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1404">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1405">1405</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1406">1406</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1407">1407</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/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1408">1408</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/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1409">1409</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/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1410">1410</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1411">1411</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1412">1412</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1413">1413</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1414">1414</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </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/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1415">1415</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1416">1416</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1417">1417</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/6db53e35732b701f032b2c4d22af10eca4f9f850#L0R1418">1418</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", 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">@@ -1396,7 +1396,6 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">static int mrn_deinit(void *p)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> pthread_mutex_destroy(&mrn_open_tables_mutex);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> my_hash_free(&mrn_allocated_thds);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> pthread_mutex_destroy(&mrn_allocated_thds_mutex);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- pthread_mutex_destroy(&mrn_log_mutex);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> pthread_mutex_destroy(&mrn_db_mutex);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> GRN_HASH_EACH(ctx, mrn_hash, id, NULL, 0, &value, {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_obj *db;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -1406,13 +1405,14 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">static int mrn_deinit(void *p)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_hash_close(ctx, mrn_hash);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_obj_unlink(ctx, mrn_db);</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">+ grn_ctx_fin(ctx);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ grn_fin();</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"> if (mrn_log_file_opened) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> fclose(mrn_log_file);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> mrn_log_file_opened = false;</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">-</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- grn_ctx_fin(ctx);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- grn_fin();</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ pthread_mutex_destroy(&mrn_log_mutex);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> return 0;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>