1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fix valgrind failure

This commit is contained in:
Sergey Petrunya
2010-08-09 00:38:42 +04:00
parent a2e29a83aa
commit 57c17e18af

View File

@@ -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)) &&