summaryrefslogtreecommitdiff
path: root/sql/records.cc
diff options
context:
space:
mode:
authorunknown <mats@kindahl-laptop.dnsalias.net>2007-10-17 06:50:03 +0200
committerunknown <mats@kindahl-laptop.dnsalias.net>2007-10-17 06:50:03 +0200
commit6eb7550631f4f324b59899b5797fd993acc5ff0f (patch)
treeac2ae1ad28201327340e27f441e33fc25ddafda6 /sql/records.cc
parent6a92f2efad5814498fe200b66ba8a4255f44a5b0 (diff)
downloadmariadb-git-6eb7550631f4f324b59899b5797fd993acc5ff0f.tar.gz
Eliminating some valgrind warnings resulting from that some
storage engines do not set the unused null bits (i.e., the filler bits and the X bit) correctly. Also adding some casts to debug printouts to eliminate compiler warnings. sql/ha_ndbcluster.cc: Changing debug enter names to use full names for member functions. sql/records.cc: Emptying records before starting to read records since some engines do not set the unused null bits, leading to valgrind errors. sql/rpl_record.cc: Adding casts to debug printouts to eliminate compiler warnings.
Diffstat (limited to 'sql/records.cc')
-rw-r--r--sql/records.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/records.cc b/sql/records.cc
index 81c26da4b4d..0bf815e4073 100644
--- a/sql/records.cc
+++ b/sql/records.cc
@@ -55,6 +55,7 @@ static int rr_index(READ_RECORD *info);
void init_read_record_idx(READ_RECORD *info, THD *thd, TABLE *table,
bool print_error, uint idx)
{
+ empty_record(table);
bzero((char*) info,sizeof(*info));
info->table= table;
info->file= table->file;
@@ -161,6 +162,7 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table,
}
else
{
+ empty_record(table);
info->record= table->record[0];
info->ref_length= table->file->ref_length;
}