<!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 &lt;kou****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2018-09-13 11:34:36 +0900 (Thu, 13 Sep 2018)</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Revision</dt>
      <dd style="margin-left: 8.5em"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca">1723e3a82bd9db665baf28dec7631442b023a0ca</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">server-verifier: log rewritten filter</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-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6e">lib/groonga-query-log/server-verifier.rb</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/groonga-query-log/server-verifier.rb (+7 -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, &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-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eL139">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eL140">140</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eL141">141</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eL142">142</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eL143">143</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-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-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eL144">144</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eL145">145</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eL146">146</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-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eR139">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eR140">140</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eR141">141</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eR142">142</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eR143">143</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eR144">144</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eR145">145</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eR146">146</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eR147">147</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eR148">148</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eR149">149</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eR150">150</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eR151">151</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga-query-log/commit/1723e3a82bd9db665baf28dec7631442b023a0ca#diff-57e9d9c9ca6758848fa9a8226a417d6eR152">152</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">@@ -140,7 +140,13 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">module GroongaQueryLog</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">       if filter and @options.need_filter_rewrite?</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         rewriter = FilterRewriter.new(filter,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                                       @options.to_filter_rewriter_options)</span>
<span class="diff-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre">-        command[&quot;filter&quot;] = rewriter.rewrite</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        rewritten_filter = rewriter.rewrite</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        if filter != rerwritten_filter</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+          $stderr.puts(&quot;Rewritten filter:&quot;)</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+          $stderr.puts(&quot;  Before: #{filter}&quot;)</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+          $stderr.puts(&quot;   After: #{rewritten_filter}&quot;)</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+          command[&quot;filter&quot;] = filter</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+        end</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       end</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       response1 = groonga1_client.execute(command)</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       response2 = groonga2_client.execute(command)</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>