List:Commits« Previous MessageNext Message »
From:Sergey Petrunia Date:January 23 2008 11:08pm
Subject:bk commit into 6.0 tree (sergefp:1.2790) BUG#33257
View as plain text  
Below is the list of changes that have just been committed into a local
6.0 repository of sergefp.  When sergefp does a push these changes
will be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2008-01-24 02:08:03+03:00, sergefp@stripped +1 -0
  BUG#33257 "range access on partitioned falcon table actually scans entire indexes"
  - pushbuild fix: when calling $partition_handler->read_range_first() don't 
    pass the start key if we really didn't have it, pass NULL, as goes per call
    convention.

  sql/ha_partition.cc@stripped, 2008-01-24 02:07:58+03:00, sergefp@stripped +2 -1
    BUG#33257 "range access on partitioned falcon table actually scans entire indexes"
    - pushbuild fix: when calling $partition_handler->read_range_first() don't 
      pass the start key if we really didn't have it, pass NULL, as goes per call
      convention.

diff -Nrup a/sql/ha_partition.cc b/sql/ha_partition.cc
--- a/sql/ha_partition.cc	2008-01-12 02:07:25 +03:00
+++ b/sql/ha_partition.cc	2008-01-24 02:07:58 +03:00
@@ -4088,7 +4088,8 @@ int ha_partition::handle_unordered_scan_
     switch (m_index_scan_type) {
     case partition_read_range:
       DBUG_PRINT("info", ("read_range_first on partition %d", i));
-      error= file->read_range_first(&m_start_key, end_range, eq_range, FALSE);
+      error= file->read_range_first(m_start_key.key? &m_start_key: NULL, 
+                                    end_range, eq_range, FALSE);
       break;
     case partition_index_read:
       DBUG_PRINT("info", ("index_read on partition %d", i));
Thread
bk commit into 6.0 tree (sergefp:1.2790) BUG#33257Sergey Petrunia24 Jan