<!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">2017-09-26 00:11:01 +0900 (Tue, 26 Sep 2017)</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/e642619f833896699b15fbb88c37dd36db25dc4d">e642619f833896699b15fbb88c37dd36db25dc4d</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, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Add missing grn_ctx_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/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782">lib/mrn_database_repairer.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; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/mrn_database_repairer.cpp (+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, "Liberation Mono", 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/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782L86">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782L87">87</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782L88">88</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782L89">89</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/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782L90">90</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782L91">91</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782L92">92</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782L105">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782L106">106</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782L107">107</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782L108">108</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/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782L109">109</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782L110">110</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782L111">111</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; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R86">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R87">87</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R88">88</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R89">89</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R90">90</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R91">91</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R92">92</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R93">93</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R106">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R107">107</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R108">108</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R109">109</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R110">110</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R111">111</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R112">112</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/e642619f833896699b15fbb88c37dd36db25dc4d#diff-16035165a3dcc9d9503c58f8ae00a782R113">113</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; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -87,6 +87,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">namespace mrn {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> do {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> each_database_body(data.cFileName, &ctx, each_body_func, user_data);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> } while (FindNextFile(finder, &data) != 0);</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ grn_ctx_fin(&ctx);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> } else {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> GRN_LOG(ctx_, GRN_LOG_WARNING,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> "[mroonga][database][repairer][each] "</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -106,6 +107,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">namespace mrn {</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> while (struct dirent *entry = readdir(dir)) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> each_database_body(entry->d_name, &ctx, each_body_func, user_data);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ grn_ctx_fin(&ctx);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> } else {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> GRN_LOG(ctx_, GRN_LOG_WARNING,</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> "[mroonga][database][repairer][each] "</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>