summaryrefslogtreecommitdiff
path: root/storage/maria/maria_def.h
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2010-09-10 02:42:12 +0300
committerMichael Widenius <monty@askmonty.org>2010-09-10 02:42:12 +0300
commitb7158601d35456fde4167fe44dcf505495b045af (patch)
tree088daf596bf6cd7fb06201ce1473d18c2408595b /storage/maria/maria_def.h
parent6f59c41d2dfad95ecdb161d6b08ec4cce736f7a8 (diff)
downloadmariadb-git-b7158601d35456fde4167fe44dcf505495b045af.tar.gz
Fixed bug LP#605798 "wrong data in bitmap" after recovery.
Extend remove_function_from_trace.pl to work with many threads (patch from Sergei) dbug/remove_function_from_trace.pl: Extend remove_function_from_trace.pl to work with many threads (patch from Sergei) storage/maria/ma_bitmap.c: Added marker that table had changed since last checkpoint. This ensures that we will flush all bitmap pages from cache at checkpoint. This fixes bug LP#605798 "wrong data in bitmap" after recovery. storage/maria/ma_check.c: Cleaned up error output storage/maria/ma_recovery.c: Cleaned up error output storage/maria/maria_def.h: Added changed_not_flushed
Diffstat (limited to 'storage/maria/maria_def.h')
-rw-r--r--storage/maria/maria_def.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/maria/maria_def.h b/storage/maria/maria_def.h
index 28f2fd8638d..6be34aae98c 100644
--- a/storage/maria/maria_def.h
+++ b/storage/maria/maria_def.h
@@ -244,7 +244,8 @@ typedef struct st_maria_file_bitmap
uchar *map;
pgcache_page_no_t page; /* Page number for current bitmap */
uint used_size; /* Size of bitmap head that is not 0 */
- my_bool changed; /* 1 if page needs to be flushed */
+ my_bool changed; /* 1 if page needs to be written */
+ my_bool changed_not_flushed; /* 1 if some bitmap is not flushed */
my_bool flush_all_requested; /**< If _ma_bitmap_flush_all waiting */
uint non_flushable; /**< 0 if bitmap and log are in sync */
PAGECACHE_FILE file; /* datafile where bitmap is stored */