dovecot-1.1: index files: Another try at fixing handling log fil...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Oct 18 16:26:22 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/c87b7143eb1c
changeset: 7947:c87b7143eb1c
user: Timo Sirainen <tss at iki.fi>
date: Sat Oct 18 16:26:04 2008 +0300
description:
index files: Another try at fixing handling log files with different header sizes.
diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
src/lib-index/mail-index-sync-update.c | 1 +
src/lib-index/mail-transaction-log-view.c | 4 ++--
diffs (31 lines):
diff -r 662e03c50099 -r c87b7143eb1c src/lib-index/mail-index-sync-update.c
--- 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
@@ -37,6 +37,7 @@ mail_index_sync_update_log_offset(struct
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) {
diff -r 662e03c50099 -r c87b7143eb1c src/lib-index/mail-transaction-log-view.c
--- 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
@@ -216,14 +216,14 @@ int mail_transaction_log_view_set(struct
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);
More information about the dovecot-cvs
mailing list