diff options
author | unknown <guilhem@gbichot4.local> | 2007-08-09 10:51:15 +0200 |
---|---|---|
committer | unknown <guilhem@gbichot4.local> | 2007-08-09 10:51:15 +0200 |
commit | 95e2558f8eed4f23179b31d0b59f03bb8af05a12 (patch) | |
tree | a62d3e5eb1c1c2c386a7809c1287e4f6fa3ebf46 /mysql-test | |
parent | 83ea6e4f13dc9d2ce50eb9d24806bf6d09de4dcb (diff) | |
download | mariadb-git-95e2558f8eed4f23179b31d0b59f03bb8af05a12.tar.gz |
* "transactionality" needs to be preserved by TRUNCATE TABLE:
a table with TRANSACTIONAL=x needs to still have it after TRUNCATE.
No testcase, but without this fix, the frm and the Maria table
got "out of sync" in this case:
create table t1 (a int) row_format=page transactional=0;
truncate table t1;
After TRUNCATE, the Maria table (not the frm) was transactional
(thus logging records, which is wrong).
* fix for non-closed file at end of "maria_chk -r"
sql/table.cc:
"transactionality" needs to be preserved when truncating.
It's behind a if() to not cancel the hack added to mysql_truncate()
today for temporary Maria tables.
storage/maria/ha_maria.cc:
question for Monty (he also has a big mail from me on the same subject)
storage/maria/ma_check.c:
question for Monty (likely bugs)
storage/maria/ma_create.c:
debugging info
storage/maria/ma_open.c:
fix for datafile left open at end of "maria_chk -r":
ma_open_datafile() happens after _ma_bitmap_init(), it sets dfile.file
so needs to set share->bitmap.file.file too (they are copies of
each other). Otherwise it breaks how closing of files works in
BLOCK_RECORD (which is that info.dfile.file is not closed
but share->bitmap.file.file is closed): not setting share->bitmap.file.file
can lead to forgetting to close a file or closing a wrong file.
Diffstat (limited to 'mysql-test')
0 files changed, 0 insertions, 0 deletions