dovecot-1.2: Avoid assert-crashing when two processes try to cre...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Sep 30 18:08:27 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/1fb19e1c84f5
changeset: 9400:1fb19e1c84f5
user: Timo Sirainen <tss at iki.fi>
date: Wed Sep 30 11:08:18 2009 -0400
description:
Avoid assert-crashing when two processes try to create index at the same time.
diffstat:
1 file changed, 5 insertions(+)
src/lib-index/mail-index.c | 5 +++++
diffs (15 lines):
diff -r 72a8063cfde0 -r 1fb19e1c84f5 src/lib-index/mail-index.c
--- a/src/lib-index/mail-index.c Wed Sep 30 10:43:12 2009 -0400
+++ b/src/lib-index/mail-index.c Wed Sep 30 11:08:18 2009 -0400
@@ -353,6 +353,11 @@ static int mail_index_open_files(struct
}
ret = mail_transaction_log_create(index->log, FALSE);
+ if (index->map != NULL) {
+ /* log creation could have changed it if someone else
+ just created it. */
+ index->map->hdr.indexid = index->indexid;
+ }
index->initial_create = FALSE;
created = TRUE;
}
More information about the dovecot-cvs
mailing list