[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] show more infomation for fast_order_limit disabled.

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:47:52 JST 2012


Kouhei Sutou	2012-02-02 14:38:27 +0900 (Thu, 02 Feb 2012)

  New Revision: 2e3dfe145540ba0daf0b8d3c0e50c9db229c5339
  https://github.com/mroonga/mroonga/commit/2e3dfe145540ba0daf0b8d3c0e50c9db229c5339

  Log:
    show more infomation for fast_order_limit disabled.

  Modified files:
    ha_mroonga.cc

  Modified: ha_mroonga.cc (+8 -3)
===================================================================
--- ha_mroonga.cc    2012-02-02 13:49:54 +0900 (72696cd)
+++ ha_mroonga.cc    2012-02-02 14:38:27 +0900 (c8c8588)
@@ -6760,13 +6760,17 @@ void ha_mroonga::check_fast_order_limit(grn_table_sort_key **sort_keys,
     }
     *limit += select_lex->select_limit->val_int();
     if (*limit > (longlong)INT_MAX) {
-      DBUG_PRINT("info", ("mroonga: fast_order_limit = FALSE"));
+      DBUG_PRINT("info",
+                 ("mroonga: fast_order_limit = FALSE: "
+                  "too long limit: %lld <= %d is required",
+                  *limit, INT_MAX));
       fast_order_limit = FALSE;
       DBUG_VOID_RETURN;
     }
     if (first_select_lex && (first_select_lex->options & OPTION_FOUND_ROWS)) {
       DBUG_PRINT("info",
-        ("mroonga: fast_order_limit = FALSE by calc_found_rows"));
+                 ("mroonga: fast_order_limit = FALSE: "
+                  "SQL_CALC_FOUND_ROWS is specified"));
       fast_order_limit = FALSE;
       DBUG_VOID_RETURN;
     }
@@ -6776,7 +6780,8 @@ void ha_mroonga::check_fast_order_limit(grn_table_sort_key **sort_keys,
     if (!where ||
         where->type() != Item::FUNC_ITEM ||
         ((Item_func *)where)->functype() != Item_func::FT_FUNC) {
-      DBUG_PRINT("info", ("mroonga: fast_order_limit = FALSE"));
+      DBUG_PRINT("info",
+                 ("mroonga: fast_order_limit = FALSE: not fulltext search"));
       fast_order_limit = FALSE;
       DBUG_VOID_RETURN;
     }
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-mysql-commit mailing list
Back to archive index