diff options
author | unknown <monty@mysql.com/narttu.mysql.fi> | 2007-08-31 10:19:54 +0300 |
---|---|---|
committer | unknown <monty@mysql.com/narttu.mysql.fi> | 2007-08-31 10:19:54 +0300 |
commit | 2cc2f3e75793246a7f1eb582c9931b2d2e5a9162 (patch) | |
tree | 7bbfd9ff144becfc7895a3f396feaa6648b2b934 /storage/maria/ma_test_recovery | |
parent | f7b766c029e087900792fa4abd60330f681f20ff (diff) | |
download | mariadb-git-2cc2f3e75793246a7f1eb582c9931b2d2e5a9162.tar.gz |
Generalized the way update and redo extends the size of a directory record.
storage/maria/ma_blockrec.c:
Generalized the way update and redo extends the size of a directory record.
This will (for now) ensure that data files are idenitical after normal run and after a apply-log run.
storage/maria/ma_open.c:
Disabled reservation of transid on rows (for now) as these are not yet used.
(I had to disable this as otherwise update thougth rows had grown in size when they hadn't and we had thus different row sizes on update and redo, which caused different block information)
storage/maria/ma_test1.c:
Added comment
storage/maria/ma_test2.c:
Do commit on error/abort
storage/maria/ma_test_all.sh:
Some more testing (to cover a bug that was not found in previous runs)
storage/maria/ma_test_recovery:
More tests
Diffstat (limited to 'storage/maria/ma_test_recovery')
-rwxr-xr-x | storage/maria/ma_test_recovery | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/storage/maria/ma_test_recovery b/storage/maria/ma_test_recovery index 7fb1a302a79..4e88824197e 100755 --- a/storage/maria/ma_test_recovery +++ b/storage/maria/ma_test_recovery @@ -21,7 +21,7 @@ echo "MARIA RECOVERY TESTS - success is if exit code is 0" # identical to the saved original. # Does not test the index file as we don't have logging for it yet. -for prog in "$maria_path/ma_test1 $silent -M -T --skip-update -c" "$maria_path/ma_test2 $silent -L -K -W -P -M -T -g -c" +for prog in "$maria_path/ma_test1 $silent -M -T -c" "$maria_path/ma_test2 $silent -L -K -W -P -M -T -c" "$maria_path/ma_test2 $silent -M -T -c -b" do rm -f maria_log.* maria_log_control echo "TEST WITH $prog" @@ -36,6 +36,8 @@ do $maria_path/maria_read_log -a > $tmp/maria_read_log_$table.txt $maria_path/maria_chk -dvv $table > $tmp/maria_chk_message.txt 2>&1 + cmp $table.MAD $tmp/$table.MAD.good + # QQ: Remove the following line when we also can recovert the index file $maria_path/maria_chk -s -r $table @@ -46,7 +48,7 @@ do echo "checksum differs for $table before and after recovery" exit 1; fi -# cmp $table.MAD $tmp/$table.MAD.good + # When "recovery of the table's state" is ready, we can test it like this: # diff $tmp/maria_chk_message.good.txt $tmp/maria_chk_message.txt > $tmp/maria_chk_diff.txt || true # if [ -s $tmp/maria_chk_diff.txt ] |