[Commits] Rev 3979: MDEV-5778: Valgrind failure in innodb_ext_keys.test in file:///home/psergey/dev2/10.0-base/

Sergey Petrunya psergey at askmonty.org
Mon Mar 3 22:41:51 EET 2014


At file:///home/psergey/dev2/10.0-base/

------------------------------------------------------------
revno: 3979
revision-id: psergey at askmonty.org-20140303204150-sddczxw933i61fx6
parent: igor at askmonty.org-20140227215405-v80baoc3qv8lf7pv
committer: Sergey Petrunya <psergey at askmonty.org>
branch nick: 10.0-base
timestamp: Tue 2014-03-04 00:41:50 +0400
message:
  MDEV-5778: Valgrind failure in innodb_ext_keys.test
  - Fix valgrind failure: make test_if_order_by_key() account for extended keys 
    feature.
=== modified file 'sql/sql_select.cc'
--- a/sql/sql_select.cc	2014-02-25 15:04:35 +0000
+++ b/sql/sql_select.cc	2014-03-03 20:41:50 +0000
@@ -19492,7 +19492,7 @@ static int test_if_order_by_key(ORDER *o
     for (; const_key_parts & 1 ; const_key_parts>>= 1)
       key_part++; 
 
-    if (key_part == key_part_end)
+    if (key_part >= key_part_end)
     {
       /* 
         We are at the end of the key. Check if the engine has the primary



More information about the commits mailing list