Mercurial > dovecot > original-hg > dovecot-1.2
changeset 2939:00b78082cd50 HEAD
mmap_disable=yes: when we're syncing index by reading transaction log,
update map header's log file offsets so our checks that use them actually
work.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 05 Dec 2004 04:18:44 +0200 |
parents | bc8ff03715b2 |
children | 0e1481357fbb |
files | src/lib-index/mail-index.c |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index.c Sun Dec 05 03:49:20 2004 +0200 +++ b/src/lib-index/mail-index.c Sun Dec 05 04:18:44 2004 +0200 @@ -564,8 +564,8 @@ struct mail_index_header hdr; const struct mail_transaction_header *thdr; const void *tdata; - uint32_t max_seq; - uoff_t max_offset; + uint32_t prev_seq, max_seq; + uoff_t prev_offset, max_offset; size_t pos; int ret, skipped; @@ -630,6 +630,12 @@ } } + mail_transaction_log_view_get_prev_pos(log_view, &prev_seq, + &prev_offset); + index->map->hdr.log_file_seq = prev_seq; + index->map->hdr.log_file_int_offset = + index->map->hdr.log_file_ext_offset = prev_offset; + mail_index_sync_map_deinit(&sync_map_ctx); mail_index_view_close(view); mail_transaction_log_view_close(log_view);