Mercurial > dovecot > core-2.2
changeset 15302:d96313048f17
fts-lucene: doveadm fts rescan crashed with mailbox_list_index=yes
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 08 Oct 2012 03:14:12 +0300 |
parents | 0306792cc843 |
children | 4d268e810c15 |
files | src/plugins/fts-lucene/lucene-wrapper.cc |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)) {