Commit 57c17e18 authored by Sergey Petrunya's avatar Sergey Petrunya

Fix valgrind failure

parent a2e29a83
......@@ -820,7 +820,8 @@ void DsMrr_impl::dsmrr_fill_key_buffer()
DBUG_ENTER("DsMrr_impl::dsmrr_fill_key_buffer");
// reset the buffer for writing.
key_buffer.reset_for_writing();
if (key_tuple_length)
key_buffer.reset_for_writing();
while ((key_tuple_length == 0 ||
key_buffer.have_space_for(key_buff_elem_size)) &&
......
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