Commit 24d9bf82 authored by Sergey Petrunya's avatar Sergey Petrunya

MDEV-5778: Valgrind failure in innodb_ext_keys.test

- Fix valgrind failure: make test_if_order_by_key() account for extended keys 
  feature.
parent 1a536c8d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment