diff options
author | unknown <monty@mysql.com/narttu.mysql.fi> | 2008-01-08 20:17:05 +0200 |
---|---|---|
committer | unknown <monty@mysql.com/narttu.mysql.fi> | 2008-01-08 20:17:05 +0200 |
commit | e6bdb11ff924440078f46b53561e183b0c17567f (patch) | |
tree | 82b297d5bb4c476cb66c76547638c69bd48063f2 /storage/maria/ma_loghandler.h | |
parent | 7e7c534b736a8c059b6566c148419148a4427294 (diff) | |
download | mariadb-git-e6bdb11ff924440078f46b53561e183b0c17567f.tar.gz |
Use LOGREC_REDO_NEW_ROW_HEAD and LOGREC_REDO_NEW_ROW_TAIL when writing to a new page
This makes REDO safer as we then know when it's safe to ignore HA_ERR_WRONG_CRC from page cache
Removed not used logged data for LOGREC_UNDO_ROW_DELETE and LOGREC_UNDO_ROW_UPDATE
storage/maria/ma_blockrec.c:
Use LOGREC_REDO_NEW_ROW_HEAD and LOGREC_REDO_NEW_ROW_TAIL when writing to a new page
This makes REDO safer as we then know when it's safe to ignore HA_ERR_WRONG_CRC from page cache
storage/maria/ma_blockrec.h:
Fixed prototype
storage/maria/ma_key_recover.c:
Removed not used logged data for LOGREC_UNDO_ROW_DELETE and LOGREC_UNDO_ROW_UPDATE
storage/maria/ma_loghandler.c:
Use LOGREC_REDO_NEW_ROW_HEAD and LOGREC_REDO_NEW_ROW_TAIL when writing to a new page
storage/maria/ma_loghandler.h:
Added LOGREC_REDO_NEW_ROW_HEAD and LOGREC_REDO_NEW_ROW_TAIL
storage/maria/ma_recovery.c:
Added support for LOGREC_REDO_NEW_ROW_HEAD and LOGREC_REDO_NEW_ROW_TAIL
Diffstat (limited to 'storage/maria/ma_loghandler.h')
-rw-r--r-- | storage/maria/ma_loghandler.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/maria/ma_loghandler.h b/storage/maria/ma_loghandler.h index 8adaea43260..33780cbcfb7 100644 --- a/storage/maria/ma_loghandler.h +++ b/storage/maria/ma_loghandler.h @@ -105,7 +105,8 @@ enum translog_record_type LOGREC_RESERVED_FOR_CHUNKS23= 0, LOGREC_REDO_INSERT_ROW_HEAD, LOGREC_REDO_INSERT_ROW_TAIL, - LOGREC_REDO_NOT_USED, /* Reserver for next tag */ + LOGREC_REDO_NEW_ROW_HEAD, + LOGREC_REDO_NEW_ROW_TAIL, LOGREC_REDO_INSERT_ROW_BLOBS, LOGREC_REDO_PURGE_ROW_HEAD, LOGREC_REDO_PURGE_ROW_TAIL, |