<!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">2012-02-02 14:38:27 +0900 (Thu, 02 Feb 2012)</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/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339">2e3dfe145540ba0daf0b8d3c0e50c9db229c5339</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, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em">show more infomation for fast_order_limit disabled.</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/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#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, &quot;Liberation Mono&quot;, 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 (+8 -3)</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"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6759">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6760">6760</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6761">6761</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6762">6762</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/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6763">6763</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6764">6764</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6765">6765</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6766">6766</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6767">6767</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6768">6768</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/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6769">6769</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6770">6770</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6771">6771</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6772">6772</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6775">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6776">6776</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6777">6777</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6778">6778</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/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6779">6779</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6780">6780</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6781">6781</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0L6782">6782</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"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6759">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6760">6760</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6761">6761</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6762">6762</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: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6763">6763</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/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6764">6764</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/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6765">6765</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/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6766">6766</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6767">6767</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6768">6768</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6769">6769</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6770">6770</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6771">6771</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: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6772">6772</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/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6773">6773</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6774">6774</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6775">6775</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6776">6776</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6779">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6780">6780</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6781">6781</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6782">6782</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: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6783">6783</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/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6784">6784</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6785">6785</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6786">6786</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339#L0R6787">6787</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"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -6760,13 +6760,17 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">void ha_mroonga::check_fast_order_limit(grn_table_sort_key **sort_keys,</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">     *limit += select_lex-&gt;select_limit-&gt;val_int();</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     if (*limit &gt; (longlong)INT_MAX) {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      DBUG_PRINT(&quot;info&quot;, (&quot;mroonga: fast_order_limit = FALSE&quot;));</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      DBUG_PRINT(&quot;info&quot;,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                 (&quot;mroonga: fast_order_limit = FALSE: &quot;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                  &quot;too long limit: %lld &lt;= %d is required&quot;,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                  *limit, INT_MAX));</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       fast_order_limit = FALSE;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       DBUG_VOID_RETURN;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     if (first_select_lex &amp;&amp; (first_select_lex-&gt;options &amp; OPTION_FOUND_ROWS)) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       DBUG_PRINT(&quot;info&quot;,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-        (&quot;mroonga: fast_order_limit = FALSE by calc_found_rows&quot;));</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                 (&quot;mroonga: fast_order_limit = FALSE: &quot;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                  &quot;SQL_CALC_FOUND_ROWS is specified&quot;));</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       fast_order_limit = FALSE;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       DBUG_VOID_RETURN;</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">@@ -6776,7 +6780,8 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">void ha_mroonga::check_fast_order_limit(grn_table_sort_key **sort_keys,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     if (!where ||</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         where-&gt;type() != Item::FUNC_ITEM ||</span>
<span class="diff-not-changed" style="display: block; white-space: pre">         ((Item_func *)where)-&gt;functype() != Item_func::FT_FUNC) {</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-      DBUG_PRINT(&quot;info&quot;, (&quot;mroonga: fast_order_limit = FALSE&quot;));</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      DBUG_PRINT(&quot;info&quot;,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+                 (&quot;mroonga: fast_order_limit = FALSE: not fulltext search&quot;));</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       fast_order_limit = FALSE;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       DBUG_VOID_RETURN;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     }</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>