From: Timo Sirainen Date: Tue, 3 May 2011 07:58:11 +0000 (+0200) Subject: lib-index: Try to avoid duplicate "duplicate transaction log sequence" errors. X-Git-Tag: 2.0.13~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f4f40b4ead495be9f445b3cdbee8753148667d6;p=thirdparty%2Fdovecot%2Fcore.git lib-index: Try to avoid duplicate "duplicate transaction log sequence" errors. --- diff --git a/src/lib-index/mail-transaction-log-file.c b/src/lib-index/mail-transaction-log-file.c index da990d07eb..f1f11ab922 100644 --- a/src/lib-index/mail-transaction-log-file.c +++ b/src/lib-index/mail-transaction-log-file.c @@ -527,7 +527,7 @@ mail_transaction_log_file_read_hdr(struct mail_transaction_log_file *file, opened. it shouldn't happen unless the old log file was corrupted. */ for (f = file->log->files; f != NULL; f = f->next) { - if (f->hdr.file_seq == file->hdr.file_seq) { + if (f->hdr.file_seq == file->hdr.file_seq && !f->corrupted) { /* mark the old file corrupted. we can't safely remove it from the list however, so return failure. */ f->corrupted = TRUE;