dovecot: Fixed "duplicate transaction log sequence" errors when ...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jul 15 00:28:13 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/00be53d8f076
changeset: 5996:00be53d8f076
user: Timo Sirainen <tss at iki.fi>
date: Sun Jul 15 00:28:08 2007 +0300
description:
Fixed "duplicate transaction log sequence" errors when we noticed that log
file was recreated while we were trying to create it ourself.
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-index/mail-transaction-log-file.c | 3 ++-
diffs (13 lines):
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 @@ mail_transaction_log_file_create2(struct
} 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);
More information about the dovecot-cvs
mailing list