Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5786:b6cf05796f6d HEAD
If log offsets are broken, don't assert-crash.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 20 Jun 2007 01:56:39 +0300 |
parents | bcf58c66a099 |
children | 01c94fef3578 |
files | src/lib-index/mail-transaction-log-file.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-file.c Wed Jun 20 01:54:42 2007 +0300 +++ b/src/lib-index/mail-transaction-log-file.c Wed Jun 20 01:56:39 2007 +0300 @@ -884,6 +884,9 @@ if (index->log_locked && file == file->log->head && end_offset == (uoff_t)-1) { /* we're not interested of going further than sync_offset */ + if (log_file_map_check_offsets(file, start_offset, + end_offset) == 0) + return 0; i_assert(start_offset <= file->sync_offset); end_offset = file->sync_offset; }