dovecot-2.0: lib-index: Try to avoid duplicate "duplicate transa...
dovecot at dovecot.org
dovecot at dovecot.org
Tue May 3 10:58:24 EEST 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/036260ae0261
changeset: 12763:036260ae0261
user: Timo Sirainen <tss at iki.fi>
date: Tue May 03 09:58:11 2011 +0200
description:
lib-index: Try to avoid duplicate "duplicate transaction log sequence" errors.
diffstat:
src/lib-index/mail-transaction-log-file.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 490a81fe688f -r 036260ae0261 src/lib-index/mail-transaction-log-file.c
--- a/src/lib-index/mail-transaction-log-file.c Tue May 03 09:43:41 2011 +0200
+++ b/src/lib-index/mail-transaction-log-file.c Tue May 03 09:58:11 2011 +0200
@@ -527,7 +527,7 @@
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;
More information about the dovecot-cvs
mailing list