diff options
author | Michael Widenius <monty@askmonty.org> | 2010-12-21 19:22:20 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2010-12-21 19:22:20 +0200 |
commit | 865685dc0c0d7dec7415b82bf93ad63ca26cbacc (patch) | |
tree | d7725926405794542321f26aa0cbc3d5e1815ca1 /storage | |
parent | 0b20943e9d7e22332ccc14b30b49a78a780cc23d (diff) | |
download | mariadb-git-865685dc0c0d7dec7415b82bf93ad63ca26cbacc.tar.gz |
Fixed bug in Aria that caused REPAIR to find old deleted rows.
BUILD/compile-pentium64:
Added --with-zlib-dir=bundled when doing static build.
mysql-test/suite/maria/r/maria.result:
Added test case
mysql-test/suite/maria/t/maria.test:
Added test case
storage/maria/ma_blockrec.c:
We need to flush blob pages to disk to ensure they overwrite any reused head/tail pages.
If not, REPAIR will find rows that was previously deleted.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/maria/ma_blockrec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/maria/ma_blockrec.c b/storage/maria/ma_blockrec.c index fd02e2ac0ec..2c3ff43c6ec 100644 --- a/storage/maria/ma_blockrec.c +++ b/storage/maria/ma_blockrec.c @@ -2506,7 +2506,7 @@ static my_bool free_full_page_range(MARIA_HA *info, pgcache_page_no_t page, } if (delete_count && pagecache_delete_pages(share->pagecache, &info->dfile, - page, delete_count, PAGECACHE_LOCK_WRITE, 0)) + page, delete_count, PAGECACHE_LOCK_WRITE, 1)) res= 1; if (share->now_transactional) |