[Groonga-mysql-commit] mroonga/mroonga at a3b8f36 [master] mysql5.6.13: return HA_KEY_SCAN_NOT_ROR index flags for spartial index

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Aug 18 19:54:57 JST 2013


Kouhei Sutou	2013-08-18 19:54:57 +0900 (Sun, 18 Aug 2013)

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

  Message:
    mysql5.6.13: return HA_KEY_SCAN_NOT_ROR index flags for spartial index
    
    If the flag is not returned, MySQL aborts since 5.6.13.

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+3 -0)
===================================================================
--- ha_mroonga.cpp    2013-08-18 19:23:31 +0900 (6946718)
+++ ha_mroonga.cpp    2013-08-18 19:54:57 +0900 (5d2fad0)
@@ -2371,6 +2371,9 @@ ulong ha_mroonga::index_flags(uint idx, uint part, bool all_parts) const
   if (key.algorithm == HA_KEY_ALG_FULLTEXT) {
     DBUG_RETURN(HA_ONLY_WHOLE_INDEX | HA_KEY_SCAN_NOT_ROR);
   }
+  if (mrn_is_geo_key(&key)) {
+    DBUG_RETURN(HA_ONLY_WHOLE_INDEX | HA_KEY_SCAN_NOT_ROR);
+  }
 
   int error = 0;
   if (wrap_handler && share && share->wrapper_mode)
-------------- next part --------------
HTML����������������������������...
Download 



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