<!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">2015-01-17 17:21:55 +0900 (Sat, 17 Jan 2015)</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/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7">ea534dc5a06531bbcccc2294abdc59576625c6a7</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">io: reduce scope</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/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#diff-0">lib/io.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, "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/io.c (+1 -1)</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/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0L1135">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0L1136">1136</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0L1137">1137</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0L1138">1138</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0L1139">1139</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0L1140">1140</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0L1141">1141</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/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0L1142">1142</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0L1143">1143</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0L1144">1144</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/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0R1135">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0R1136">1136</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0R1137">1137</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0R1138">1138</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/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0R1139">1139</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0R1140">1140</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0R1141">1141</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0R1142">1142</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0R1143">1143</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/ea534dc5a06531bbcccc2294abdc59576625c6a7#L0R1144">1144</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">@@ -1136,9 +1136,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_io_expire(grn_ctx *ctx, grn_io *io, int count_thresh, uint32_t limit)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> GRN_ATOMIC_ADD_EX(pnref, 1, nref);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (!nref && grn_gtick - io->count > count_thresh) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_io_mapinfo *info = io->maps;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- grn_io_array_spec *array_specs = (grn_io_array_spec *)io->user_header;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> uint32_t i = io->header->n_arrays;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ grn_io_array_spec *array_specs = (grn_io_array_spec *)io->user_header;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> while (i--) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> memset(io->ainfo[i].addrs, 0, sizeof(void *) * array_specs[i].max_n_segments);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>