dovecot-2.0: lib-index: fsck shouldn't assert-crash when no .log...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Sep 13 13:56:11 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/f97b0b163e01
changeset: 12101:f97b0b163e01
user: Timo Sirainen <tss at iki.fi>
date: Mon Sep 13 11:56:08 2010 +0100
description:
lib-index: fsck shouldn't assert-crash when no .log file exists
diffstat:
src/lib-index/mail-index-fsck.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (16 lines):
diff -r 39fef730dec3 -r f97b0b163e01 src/lib-index/mail-index-fsck.c
--- a/src/lib-index/mail-index-fsck.c Mon Sep 13 11:52:18 2010 +0100
+++ b/src/lib-index/mail-index-fsck.c Mon Sep 13 11:56:08 2010 +0100
@@ -433,9 +433,9 @@
if (index->log->head == NULL) {
/* we're trying to open the index files, but there wasn't
- any .log file. this should be rare, so just fsck it without
- locking. */
- orig_locked = TRUE;
+ any .log file. */
+ if (mail_transaction_log_create(index->log, FALSE) < 0)
+ return -1;
}
if (!orig_locked) {
More information about the dovecot-cvs
mailing list