changeset 9439:d55146fea954 HEAD

lib-index: looking up offset for transaction log's initial modseq failed.
author Timo Sirainen <tss@iki.fi>
date Thu, 15 Oct 2009 22:26:03 -0400
parents 1207923ccb94
children ebb44fb7d9de
files src/lib-index/mail-transaction-log-file.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 		*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) {