Mercurial > dovecot > core-2.2
diff src/lib-index/mail-transaction-log-private.h @ 5716:4a08705e97f5 HEAD
Fixes to mail_transaction_log_file_map() error handling.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 13 Jun 2007 19:49:51 +0300 |
parents | dcf5dbb6a76a |
children | 420a386fa27a |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-private.h Wed Jun 13 19:49:06 2007 +0300 +++ b/src/lib-index/mail-transaction-log-private.h Wed Jun 13 19:49:51 2007 +0300 @@ -96,6 +96,8 @@ uint32_t file_seq, struct mail_transaction_log_file **file_r); +/* Returns 1 if ok, 0 if file is corrupted or offset range is invalid, + -1 if I/O error */ int mail_transaction_log_file_map(struct mail_transaction_log_file *file, uoff_t start_offset, uoff_t end_offset); void mail_transaction_log_file_move_to_memory(struct mail_transaction_log_file