Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8290:4402563ad86e HEAD
index files: Another try at fixing handling log files with different header sizes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 18 Oct 2008 16:26:04 +0300 |
parents | fd351312dedb |
children | 4296aa3fbb75 |
files | src/lib-index/mail-index-sync-update.c src/lib-index/mail-transaction-log-view.c |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-sync-update.c Sat Oct 18 16:00:05 2008 +0300 +++ b/src/lib-index/mail-index-sync-update.c Sat Oct 18 16:26:04 2008 +0300 @@ -42,6 +42,7 @@ to sync it over and over again. */ prev_offset = ctx->ext_intro_offset; } + map->hdr.log_file_seq = prev_seq; } else { i_assert(ctx->view->index->log->head->hdr.file_seq == prev_seq); if (map->hdr.log_file_seq != prev_seq) {
--- a/src/lib-index/mail-transaction-log-view.c Sat Oct 18 16:00:05 2008 +0300 +++ b/src/lib-index/mail-transaction-log-view.c Sat Oct 18 16:26:04 2008 +0300 @@ -221,14 +221,14 @@ if (min_file_offset == 0) { /* beginning of the file */ - min_file_offset = view->head->hdr.hdr_size; + min_file_offset = view->tail->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->head->hdr.hdr_size); + i_assert(min_file_offset >= view->tail->hdr.hdr_size); /* we have all of them. update refcounts. */ mail_transaction_log_view_unref_all(view);