Commit 5cfc62f9 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-7087 main.stat_tables-enospc fails in buildbot on a valgrind build

when reading data into the record buffer, the tail of the VARCHAR
(between real and max varchar length) is not written to. initialize the record
buffer to avoid writing uninitialized memory to disk.
parent 59ab7901
......@@ -2468,6 +2468,8 @@ int collect_statistics_for_table(THD *thd, TABLE *table)
table_field->collected_stats->init(thd, table_field);
}
restore_record(table, s->default_values);
/* Perform a full table scan to collect statistics on 'table's columns */
if (!(rc= file->ha_rnd_init(TRUE)))
{
......
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