changeset 5781:67cc6420c4e6 HEAD

Don't rotate transaction log if log head sequence doesn't match the current synced log's sequence.
author Timo Sirainen <tss@iki.fi>
date Tue, 19 Jun 2007 18:39:16 +0300
parents f61313136530
children 2e6a977b1d6a
files src/lib-index/mail-index-write.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-index-write.c	Tue Jun 19 18:37:27 2007 +0300
+++ b/src/lib-index/mail-index-write.c	Tue Jun 19 18:39:16 2007 +0300
@@ -154,6 +154,7 @@
 	map->write_ext_header = FALSE;
 
 	if (want_rotate &&
+	    hdr->log_file_seq == index->log->head->hdr.file_seq &&
 	    hdr->log_file_tail_offset == hdr->log_file_head_offset)
 		(void)mail_transaction_log_rotate(index->log);
 }