1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-5778: Valgrind failure in innodb_ext_keys.test

- Fix valgrind failure: make test_if_order_by_key() account for extended keys 
  feature.
This commit is contained in:
Sergey Petrunya
2014-03-04 00:41:50 +04:00
parent 1a536c8daf
commit 24d9bf8227

View File

@ -19492,7 +19492,7 @@ static int test_if_order_by_key(ORDER *order, TABLE *table, uint idx,
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