From 63cd7bdcd5f95ed08b521099157ff4c61fa62bc3 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 21 Nov 2007 12:13:27 +0200 Subject: Fixed errors found by valgrind Changed bitmaps to be written before unpinning of pages in write_block_record() Log handler now assumes we never call it for not transactional tables Fixed bug in ma_test_all that caused it to fail sql/unireg.cc: Removed 'at', as this makes it hard to find valgrind errors from the debug log storage/maria/ma_blockrec.c: Changed bzero() of blocks to get rid of a (non critical) valgrind error Changed bitmaps to be written before unpinning of pages in write_block_record() fixed that we don't log tails if table isn't transactional storage/maria/ma_key_recover.c: Fixed wrong log_data[] that caused us to log uninitialized data storage/maria/ma_loghandler.c: Replaced not needed test with DBUG_ASSERT() storage/maria/ma_test_all.sh: Remove control file if block size changes --- sql/unireg.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql') diff --git a/sql/unireg.cc b/sql/unireg.cc index da52889fb2f..ae7d3d9d062 100644 --- a/sql/unireg.cc +++ b/sql/unireg.cc @@ -471,7 +471,7 @@ static uint pack_keys(uchar *keybuff, uint key_count, KEY *keyinfo, int2store(pos+6, key->block_size); pos+=8; key_parts+=key->key_parts; - DBUG_PRINT("loop", ("flags: %d key_parts: %d at 0x%lx", + DBUG_PRINT("loop", ("flags: %d key_parts: %d key_part: 0x%lx", key->flags, key->key_parts, (long) key->key_part)); for (key_part=key->key_part,key_part_end=key_part+key->key_parts ; -- cgit v1.2.1