# HG changeset patch # User Timo Sirainen # Date 1184448488 -10800 # Node ID 00be53d8f07637de1fab0f5930dab1b0d3af3c04 # Parent 2473829b42b2e275a31a936c22686a09ace38ddf Fixed "duplicate transaction log sequence" errors when we noticed that log file was recreated while we were trying to create it ourself. diff -r 2473829b42b2 -r 00be53d8f076 src/lib-index/mail-transaction-log-file.c --- a/src/lib-index/mail-transaction-log-file.c Sat Jul 14 23:59:29 2007 +0300 +++ b/src/lib-index/mail-transaction-log-file.c Sun Jul 15 00:28:08 2007 +0300 @@ -472,7 +472,8 @@ } else { file->fd = fd; if (mail_transaction_log_file_read_hdr(file, - FALSE) > 0) { + FALSE) > 0 && + mail_transaction_log_file_stat(file, FALSE) == 0) { /* yes, it was ok */ (void)file_dotlock_delete(dotlock); mail_transaction_log_file_add_to_list(file);