dovecot-2.1: fts-lucene: doveadm fts rescan crashed with mailbox...

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 8 03:14:24 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/d96313048f17
changeset: 14756:d96313048f17
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 08 03:14:12 2012 +0300
description:
fts-lucene: doveadm fts rescan crashed with mailbox_list_index=yes

diffstat:

 src/plugins/fts-lucene/lucene-wrapper.cc |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 0306792cc843 -r d96313048f17 src/plugins/fts-lucene/lucene-wrapper.cc
--- a/src/plugins/fts-lucene/lucene-wrapper.cc	Fri Oct 05 00:15:01 2012 +0300
+++ b/src/plugins/fts-lucene/lucene-wrapper.cc	Mon Oct 08 03:14:12 2012 +0300
@@ -753,7 +753,8 @@
 	while ((info = mailbox_list_iter_next(iter)) != NULL) {
 		box = mailbox_alloc(index->list, info->name,
 				    (enum mailbox_flags)0);
-		if (mailbox_get_metadata(box, MAILBOX_METADATA_GUID,
+		if (mailbox_open(box) == 0 &&
+		    mailbox_get_metadata(box, MAILBOX_METADATA_GUID,
 					 &metadata) == 0 &&
 		    (guids == NULL ||
 		     hash_table_lookup(guids, metadata.guid) == NULL)) {


More information about the dovecot-cvs mailing list