dovecot-1.2: lib-index: looking up offset for transaction log's ...

dovecot at dovecot.org dovecot at dovecot.org
Fri Oct 16 05:26:42 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/d55146fea954
changeset: 9439:d55146fea954
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Oct 15 22:26:03 2009 -0400
description:
lib-index: looking up offset for transaction log's initial modseq failed.

diffstat:

1 file changed, 4 insertions(+)
src/lib-index/mail-transaction-log-file.c |    4 ++++

diffs (14 lines):

diff -r 1207923ccb94 -r d55146fea954 src/lib-index/mail-transaction-log-file.c
--- a/src/lib-index/mail-transaction-log-file.c	Thu Oct 15 21:40:05 2009 -0400
+++ b/src/lib-index/mail-transaction-log-file.c	Thu Oct 15 22:26:03 2009 -0400
@@ -1008,6 +1008,10 @@ int mail_transaction_log_file_get_modseq
 		*next_offset_r = file->sync_offset;
 		return 0;
 	}
+	if (modseq == file->hdr.initial_modseq) {
+		*next_offset_r = file->hdr.hdr_size;
+		return 0;
+	}
 
 	cache = modseq_cache_get_modseq(file, modseq);
 	if (cache == NULL) {


More information about the dovecot-cvs mailing list