mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Valgrind fix for the previous cset:
- {ha_myisam,ha_maria}::index_read_idx_map should also initialize end_range, because index condition function will attempt to check it. We initialize it like index_init() does.
This commit is contained in:
@ -2261,6 +2261,7 @@ int ha_maria::index_read_idx_map(uchar * buf, uint index, const uchar * key,
|
||||
{
|
||||
int error;
|
||||
/* Use the pushed index condition if it matches the index we're scanning */
|
||||
end_range= NULL;
|
||||
if (index == pushed_idx_cond_keyno)
|
||||
ma_set_index_cond_func(file, index_cond_func_maria, this);
|
||||
|
||||
|
@ -1792,6 +1792,7 @@ int ha_myisam::index_read_idx_map(uchar *buf, uint index, const uchar *key,
|
||||
{
|
||||
int res;
|
||||
/* Use the pushed index condition if it matches the index we're scanning */
|
||||
end_range= NULL;
|
||||
if (index == pushed_idx_cond_keyno)
|
||||
mi_set_index_cond_func(file, index_cond_func_myisam, this);
|
||||
res= mi_rkey(file, buf, index, key, keypart_map, find_flag);
|
||||
|
Reference in New Issue
Block a user