<!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 <ikdtt****@gmail*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2009-02-06 18:08:00 +0900 (Fri, 06 Feb 2009)</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9">d3b750992aa7dc741d63b10ec94fd487d83e39c9</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">added global mutex object added mutex-lock on mrn_flush_logs         modified: src/ha_groonga.cc</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#diff-0">src/ha_groonga.cc</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: src/ha_groonga.cc (+9 -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"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L1">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L2">2</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L4">4</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L5">5</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L7">7</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L8">8</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L154">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L155">155</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L156">156</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L157">157</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L158">158</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L159">159</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L160">160</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L161">161</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L162">162</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L163">163</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L164">164</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L165">165</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L171">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L172">172</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L173">173</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L174">174</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L175">175</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L176">176</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L177">177</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L178">178</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L179">179</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L180">180</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L181">181</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L182">182</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L183">183</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0L184">184</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R1">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R2">2</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R4">4</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R6">6</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R7">7</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R8">8</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R9">9</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R10">10</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R156">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R157">157</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R158">158</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R159">159</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R160">160</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R161">161</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R162">162</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R163">163</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R164">164</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R165">165</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R166">166</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R167">167</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R168">168</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R169">169</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R175">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R176">176</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R177">177</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R178">178</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R179">179</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R180">180</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R181">181</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R182">182</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R183">183</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R184">184</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R185">185</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R186">186</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R187">187</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R188">188</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R189">189</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/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R190">190</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R191">191</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R192">192</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/d3b750992aa7dc741d63b10ec94fd487d83e39c9#L0R193">193</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">@@ -2,7 +2,9 @@</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #include <mysql/plugin.h></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #include <groonga.h></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #include "ha_groonga.h"</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+#include <pthread.h></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">+pthread_mutex_t mrn_mutex_sys;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_ctx *mrn_ctx_sys;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> const char *mrn_log_name="groonga.log";</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> static FILE *mrn_log_file = NULL;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -155,11 +157,13 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">void ha_groonga::position(const uchar *record)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> bool mrn_flush_logs(handlerton *hton)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> MRN_ENTER;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ pthread_mutex_lock(&mrn_mutex_sys);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> MRN_LOG(GRN_LOG_NOTICE, "logfile closed by FLUSH LOGS");</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> fflush(mrn_log_file);</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 = fopen(mrn_log_name, "a");</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> MRN_LOG(GRN_LOG_NOTICE, "logfile re-opened by FLUSH LOGS");</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ pthread_mutex_unlock(&mrn_mutex_sys);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> MRN_RETURN(true);</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-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -172,13 +176,18 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">static int mrn_init(void *p)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> hton->create = mrn_handler_create;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> hton->flush_logs = mrn_flush_logs;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> hton->flags = 0;</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">+ pthread_mutex_init(&mrn_mutex_sys, MY_MUTEX_INIT_FAST);</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"> grn_init();</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> mrn_ctx_sys = (grn_ctx *) malloc(sizeof (grn_ctx));</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_ctx_init(mrn_ctx_sys, GRN_CTX_USE_DB, GRN_ENC_UTF8);</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 = fopen(mrn_log_name, "a"))) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> MRN_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"> grn_logger_info_set(mrn_ctx_sys, &mrn_logger_info);</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"> MRN_LOG(GRN_LOG_NOTICE, "gronnga engine started");</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> MRN_RETURN(0);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>