<!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">2011-06-09 18:26:03 +0900 (Thu, 09 Jun 2011)</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/2d5bda043780944a906aff36d13581ad418f645a">2d5bda043780944a906aff36d13581ad418f645a</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">[default][create] use meaningful name.</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/2d5bda043780944a906aff36d13581ad418f645a#diff-0">ha_mroonga.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: ha_mroonga.cc (+2 -2)</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/2d5bda043780944a906aff36d13581ad418f645a#L0L1259">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0L1260">1260</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0L1261">1261</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0L1262">1262</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/2d5bda043780944a906aff36d13581ad418f645a#L0L1263">1263</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/2d5bda043780944a906aff36d13581ad418f645a#L0L1264">1264</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0L1265">1265</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0L1266">1266</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0L1267">1267</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0L1268">1268</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/2d5bda043780944a906aff36d13581ad418f645a#L0L1269">1269</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/2d5bda043780944a906aff36d13581ad418f645a#L0L1270">1270</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0L1271">1271</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0L1272">1272</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/2d5bda043780944a906aff36d13581ad418f645a#L0R1259">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0R1260">1260</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0R1261">1261</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0R1262">1262</a></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/2d5bda043780944a906aff36d13581ad418f645a#L0R1263">1263</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0R1264">1264</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0R1265">1265</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0R1266">1266</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0R1267">1267</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0R1268">1268</a></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/2d5bda043780944a906aff36d13581ad418f645a#L0R1269">1269</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0R1270">1270</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0R1271">1271</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2d5bda043780944a906aff36d13581ad418f645a#L0R1272">1272</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">@@ -1260,13 +1260,13 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int ha_mroonga::default_create_ensure_database_open(const char *name)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_obj *db_obj;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> char db_name[MRN_MAX_PATH_SIZE];</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> char db_path[MRN_MAX_PATH_SIZE];</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- struct stat dummy;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ struct stat db_stat;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> mrn_db_name_gen(name, db_name);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> mrn_db_path_gen(name, db_path);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> pthread_mutex_lock(&mrn_db_mutex);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (mrn_hash_get(ctx, mrn_hash, db_name, (void**) &(db_obj)) != 0) {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- if (stat(db_path, &dummy)) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ if (stat(db_path, &db_stat)) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> // creating new database</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> GRN_LOG(ctx, GRN_LOG_INFO, "database not found. creating...(%s)", db_path);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> db_obj = grn_db_create(ctx, db_path, NULL);</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>