dovecot-1.1: index files: Fix for handling two log files with di...
dovecot at dovecot.org
dovecot at dovecot.org
Sat Oct 18 16:00:09 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/662e03c50099
changeset: 7946:662e03c50099
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 b73eb7134937 -r 662e03c50099 src/lib-index/mail-transaction-log-view.c
--- a/src/lib-index/mail-transaction-log-view.c Sat Oct 18 15:23:54 2008 +0300
+++ b/src/lib-index/mail-transaction-log-view.c Sat Oct 18 16:00:05 2008 +0300
@@ -156,7 +156,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;
}
@@ -216,14 +216,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