[Commits] Rev 4476: MDEV-7087 main.stat_tables-enospc fails in buildbot on a valgrind build in lp:~maria-captains/maria/10.0

Sergei Golubchik serg at mariadb.org
Wed Nov 12 17:34:06 EET 2014


At lp:~maria-captains/maria/10.0

------------------------------------------------------------
revno: 4476
revision-id: sergii at pisem.net-20141112153406-mwgnh363eq8z6eod
parent: sergii at pisem.net-20141112120916-r3ishm9ja9lk2dfw
fixes bug: https://mariadb.atlassian.net/browse/MDEV-7087
committer: Sergei Golubchik <sergii at pisem.net>
branch nick: 10.0
timestamp: Wed 2014-11-12 16:34:06 +0100
message:
  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.
=== modified file 'sql/sql_statistics.cc'
--- a/sql/sql_statistics.cc	2014-10-29 05:31:52 +0000
+++ b/sql/sql_statistics.cc	2014-11-12 15:34:06 +0000
@@ -2468,6 +2468,8 @@ int collect_statistics_for_table(THD *th
     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)))
   {  



More information about the commits mailing list