dovecot-1.2: index files: Fix for handling two log files with di...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Oct 18 16:00:49 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/fd351312dedb
changeset: 8289:fd351312dedb
user: Timo Sirainen <tss at iki.fi>
date: Sat Oct 18 16:00:05 2008 +0300
description:
index files: Fix for handling two log files with different header sizes.
diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
src/lib-index/mail-transaction-log-view.c | 6 +++---
diffs (29 lines):
diff -r 5e79a333954d -r fd351312dedb src/lib-index/mail-transaction-log-view.c
--- 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 @@ int mail_transaction_log_view_set(struct
"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 @@ int mail_transaction_log_view_set(struct
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);
More information about the dovecot-cvs
mailing list