Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8289:fd351312dedb HEAD
index files: Fix for handling two log files with different header sizes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 18 Oct 2008 16:00:05 +0300 |
parents | 5e79a333954d |
children | 4402563ad86e |
files | src/lib-index/mail-transaction-log-view.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-view.c Sat Oct 18 15:37:42 2008 +0300 +++ b/src/lib-index/mail-transaction-log-view.c Sat Oct 18 16:00:05 2008 +0300 @@ -161,7 +161,7 @@ "file_seq=%u, min_file_offset (%"PRIuUOFF_T ") < hdr_size (%u)", min_file_seq, min_file_offset, - view->tail->hdr.hdr_size); + view->log->files->hdr.hdr_size); return -1; } @@ -221,14 +221,14 @@ if (min_file_offset == 0) { /* beginning of the file */ - min_file_offset = view->tail->hdr.hdr_size; + min_file_offset = view->head->hdr.hdr_size; if (min_file_offset > max_file_offset && min_file_seq == max_file_seq) { /* we don't actually want to show anything */ max_file_offset = min_file_offset; } } - i_assert(min_file_offset >= view->tail->hdr.hdr_size); + i_assert(min_file_offset >= view->head->hdr.hdr_size); /* we have all of them. update refcounts. */ mail_transaction_log_view_unref_all(view);