mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 00:24:30 +02:00
Fix valgrind failure: don't access key_buffer if we haven't set it up yet.
This commit is contained in:
parent
e25db795bd
commit
758b68a980
1 changed files with 2 additions and 1 deletions
|
|
@ -822,7 +822,8 @@ void DsMrr_impl::dsmrr_fill_key_buffer()
|
|||
// reset the buffer for writing.
|
||||
key_buffer.reset_for_writing();
|
||||
|
||||
while ((key_buffer.have_space_for(key_buff_elem_size)) &&
|
||||
while ((key_tuple_length == 0 ||
|
||||
key_buffer.have_space_for(key_buff_elem_size)) &&
|
||||
!(res= h->mrr_funcs.next(h->mrr_iter, &cur_range)))
|
||||
{
|
||||
DBUG_ASSERT(cur_range.range_flag & EQ_RANGE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue