mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01: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:
parent
932d516656
commit
08fa757a73
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue