dovecot: Don't rotate transaction log if log head sequence doesn...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jun 20 01:56:46 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/67cc6420c4e6
changeset: 5781:67cc6420c4e6
user: Timo Sirainen <tss at iki.fi>
date: Tue Jun 19 18:39:16 2007 +0300
description:
Don't rotate transaction log if log head sequence doesn't match the current
synced log's sequence.
diffstat:
1 file changed, 1 insertion(+)
src/lib-index/mail-index-write.c | 1 +
diffs (11 lines):
diff -r f61313136530 -r 67cc6420c4e6 src/lib-index/mail-index-write.c
--- 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 @@ void mail_index_write(struct mail_index
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);
}
More information about the dovecot-cvs
mailing list