diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-11-18 22:25:27 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-11-18 22:25:27 +0100 |
commit | 5cfc62f9c6efdb7bf42588e3cfb1306f4a032fd7 (patch) | |
tree | f7ee6297a6fddfd868f3f689bcfd3cf04193f930 /sql/sql_statistics.cc | |
parent | 59ab7901657e5a41996d14bbb49c63c4ba7e886e (diff) | |
download | mariadb-git-5cfc62f9c6efdb7bf42588e3cfb1306f4a032fd7.tar.gz |
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.
Diffstat (limited to 'sql/sql_statistics.cc')
-rw-r--r-- | sql/sql_statistics.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_statistics.cc b/sql/sql_statistics.cc index 9807a26f772..d368145ca73 100644 --- a/sql/sql_statistics.cc +++ b/sql/sql_statistics.cc @@ -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))) { |