<!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">susumu.yata &lt;susum****@gmail*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2015-10-28 18:51:45 +0900 (Wed, 28 Oct 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/0b96a19056bad41db8d3e277cc5b21ba78b63195">0b96a19056bad41db8d3e277cc5b21ba78b63195</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, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">grn_pat: fix a bug that a pat is broken in deletion

GitHub: <a href="https://github.com/groonga/groonga/issues/421">#421</a></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/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265f">lib/pat.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, &quot;Liberation Mono&quot;, 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/pat.c (+6 -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, &quot;Liberation Mono&quot;, 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/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fL1218">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fL1219">1219</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fL1220">1220</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fL1221">1221</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fL1222">1222</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fL1223">1223</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fL1224">1224</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, 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/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fR1218">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fR1219">1219</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fR1220">1220</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fR1221">1221</a></span>
<span class="diff-line-number-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fR1222">1222</a></span>
<span class="diff-line-number-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fR1223">1223</a></span>
<span class="diff-line-number-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fR1224">1224</a></span>
<span class="diff-line-number-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fR1225">1225</a></span>
<span class="diff-line-number-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fR1226">1226</a></span>
<span class="diff-line-number-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fR1227">1227</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fR1228">1228</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fR1229">1229</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/0b96a19056bad41db8d3e277cc5b21ba78b63195#diff-e8f58132837f95fac7913a81cae2265fR1230">1230</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, 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">@@ -1219,6 +1219,12 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">_grn_pat_del(grn_ctx *ctx, grn_pat *pat, const char *key, uint32_t key_size, int</span></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-not-changed" style="display: block; white-space: pre">     *p0 = otherside;</span>
<span class="diff-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre">+  } else if ((!rn-&gt;lr[0] &amp;&amp; rn-&gt;lr[1] == r) ||</span>
<span class="diff-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre">+             (!rn-&gt;lr[1] &amp;&amp; rn-&gt;lr[0] == r)) {</span>
<span class="diff-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre">+    /* The output node has only a disabled self-loop. */</span>
<span class="diff-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre">+    di-&gt;stat = DL_PHASE2;</span>
<span class="diff-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre">+    di-&gt;d = r;</span>
<span class="diff-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre">+    *p = 0;</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">     /* The last transition (p) is not a self-loop. */</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     grn_pat_delinfo *ldi = NULL, *ddi = NULL;</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>