diff options
author | Michael Widenius <monty@mysql.com> | 2010-08-11 00:58:08 +0300 |
---|---|---|
committer | Michael Widenius <monty@mysql.com> | 2010-08-11 00:58:08 +0300 |
commit | e6cf286b5dcebc78332cdf05d6e20d9ae39d1875 (patch) | |
tree | c4d8cb450285d0fde8c68d02091c3dd0cd7b3c60 /storage/maria/ma_bitmap.c | |
parent | 0f75abc459beee1ebbb66de124d2a88ecc0d75a2 (diff) | |
download | mariadb-git-e6cf286b5dcebc78332cdf05d6e20d9ae39d1875.tar.gz |
Fixed LP#605798 RQG: Table corruption after Maria engine recovery - "Wrong data in bitmap"
maria_chk & maria_read_log now reads block size from control file.
mysql-test/suite/maria/r/maria.result:
Updated results after trivial change of maria_chk's output
storage/maria/ma_bitmap.c:
More DBUG_PRINT
storage/maria/ma_blockrec.c:
Fixed bug that we didn't mark page full in bitmap if directory is full
storage/maria/ma_check.c:
Write out if directory is full for errors in bitmap
storage/maria/ma_control_file.c:
Don't give error for wrong block size if block size is 0
storage/maria/maria_chk.c:
Read block size from control file
In case of -dvv, write also out bitmap information (good for debugging)
storage/maria/maria_read_log.c:
Read block size from control file
Fixed that maria_read_log works with different page size than TRANSLOG_PAGE_SIZE
Diffstat (limited to 'storage/maria/ma_bitmap.c')
-rw-r--r-- | storage/maria/ma_bitmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/maria/ma_bitmap.c b/storage/maria/ma_bitmap.c index 882c6e4cd06..70617160d03 100644 --- a/storage/maria/ma_bitmap.c +++ b/storage/maria/ma_bitmap.c @@ -2393,6 +2393,8 @@ my_bool _ma_bitmap_set(MARIA_HA *info, pgcache_page_no_t page, my_bool head, uint bits; my_bool res; DBUG_ENTER("_ma_bitmap_set"); + DBUG_PRINT("enter", ("page: %lu head: %d empty_space: %u", + (ulong) page, head, empty_space)); pthread_mutex_lock(&info->s->bitmap.bitmap_lock); bits= (head ? |