[Groonga-mysql-commit] mroonga/mroonga [master] Specify GRN_CURSOR_ASCENDING explicitly.

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Oct 5 23:25:16 JST 2012


Kouhei Sutou	2012-10-05 23:25:16 +0900 (Fri, 05 Oct 2012)

  New Revision: cc1a00db723adef963aa933dece20f8c2dccefd5
  https://github.com/mroonga/mroonga/commit/cc1a00db723adef963aa933dece20f8c2dccefd5

  Log:
    Specify GRN_CURSOR_ASCENDING explicitly.
    
    It is the default order.

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -1)
===================================================================
--- ha_mroonga.cpp    2012-10-05 23:21:25 +0900 (5921e34)
+++ ha_mroonga.cpp    2012-10-05 23:25:16 +0900 (c4cfeef)
@@ -6834,7 +6834,7 @@ int ha_mroonga::storage_read_range_first(const key_range *start_key,
     }
   }
   if (end_key && end_key->flag == HA_READ_BEFORE_KEY) {
-    flags |= GRN_CURSOR_LT;
+    flags |= GRN_CURSOR_LT | GRN_CURSOR_ASCENDING;
   }
 
   uint pkey_nr = table->s->primary_key;
-------------- next part --------------
HTML����������������������������...
Download 



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