mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
valgrind error fix
This commit is contained in:
parent
2572c82621
commit
7ca34a798f
1 changed files with 12 additions and 7 deletions
|
@ -8820,7 +8820,7 @@ int QUICK_GROUP_MIN_MAX_SELECT::get_next()
|
||||||
#else
|
#else
|
||||||
int result;
|
int result;
|
||||||
#endif
|
#endif
|
||||||
int is_last_prefix;
|
int is_last_prefix= 0;
|
||||||
|
|
||||||
DBUG_ENTER("QUICK_GROUP_MIN_MAX_SELECT::get_next");
|
DBUG_ENTER("QUICK_GROUP_MIN_MAX_SELECT::get_next");
|
||||||
|
|
||||||
|
@ -8835,13 +8835,18 @@ int QUICK_GROUP_MIN_MAX_SELECT::get_next()
|
||||||
Check if this is the last group prefix. Notice that at this point
|
Check if this is the last group prefix. Notice that at this point
|
||||||
this->record contains the current prefix in record format.
|
this->record contains the current prefix in record format.
|
||||||
*/
|
*/
|
||||||
is_last_prefix= key_cmp(index_info->key_part, last_prefix,
|
if (!result)
|
||||||
group_prefix_len);
|
{
|
||||||
DBUG_ASSERT(is_last_prefix <= 0);
|
is_last_prefix= key_cmp(index_info->key_part, last_prefix,
|
||||||
if (result == HA_ERR_KEY_NOT_FOUND)
|
group_prefix_len);
|
||||||
continue;
|
DBUG_ASSERT(is_last_prefix <= 0);
|
||||||
else if (result)
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (result == HA_ERR_KEY_NOT_FOUND)
|
||||||
|
continue;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (have_min)
|
if (have_min)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue