Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-index/mail-transaction-log.h @ 8129:612eb505775f HEAD
Write CPU endianess to transaction log header and check it's correct when reading.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 31 Aug 2008 09:31:27 +0300 |
parents | 5bedea448cf9 |
children | b97c3be33b04 |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log.h Sat Aug 30 15:24:55 2008 +0300 +++ b/src/lib-index/mail-transaction-log.h Sun Aug 31 09:31:27 2008 +0300 @@ -5,7 +5,7 @@ struct mail_index_transaction; #define MAIL_TRANSACTION_LOG_MAJOR_VERSION 1 -#define MAIL_TRANSACTION_LOG_MINOR_VERSION 1 +#define MAIL_TRANSACTION_LOG_MINOR_VERSION 2 #define MAIL_TRANSACTION_LOG_HEADER_MIN_SIZE 24 struct mail_transaction_log_header { @@ -18,7 +18,10 @@ uint32_t prev_file_seq; uint32_t prev_file_offset; uint32_t create_stamp; - uint64_t initial_modseq; + uint64_t initial_modseq; /* v1.1+ */ + + uint8_t compat_flags; /* enum mail_index_header_compat_flags, v1.2+ */ + uint8_t unused[3]; }; enum mail_transaction_type {